Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions arm-sql/2014-04-01/examples/DatabaseListWithFilter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "sqlcrudtest-6845",
"serverName": "sqlcrudtest-7177",
"api-version": "2014-04-01",
"$filter": "properties/edition eq 'System'"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6845/providers/Microsoft.Sql/servers/sqlcrudtest-7177/databases/master",
"name": "master",
"type": "Microsoft.Sql/servers/databases",
"location": "Japan East",
"kind": "v12.0,system",
"properties": {
"databaseId": "e760a51c-3dce-4d8c-976b-a2b929a73e08",
"edition": "System",
"status": "Online",
"serviceLevelObjective": "System2",
"collation": "SQL_Latin1_General_CP1_CI_AS",
"maxSizeBytes": "32212254720",
"creationDate": "2017-02-10T00:59:33.483Z",
"currentServiceObjectiveId": "620323bf-2879-4807-b30d-c2e6d7b3b3aa",
"requestedServiceObjectiveId": "620323bf-2879-4807-b30d-c2e6d7b3b3aa",
"requestedServiceObjectiveName": "System2",
"sampleName": null,
"defaultSecondaryLocation": "Japan West",
"earliestRestoreDate": null,
"elasticPoolName": null,
"containmentState": 2,
"readScale": "Disabled",
"failoverGroupId": null
}
}
]
}
}
}
}
24 changes: 16 additions & 8 deletions arm-sql/2014-04-01/swagger/sql.core.json
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@
"in": "query",
"required": false,
"type": "string",
"description": "The comma separated list of child objects to expand in the response. Possible properties: serviceTierAdvisors, upgradeHint, transparentDataEncryption."
"description": "A comma separated list of child objects to expand in the response. Possible properties: serviceTierAdvisors, upgradeHint, transparentDataEncryption."
}
],
"responses": {
Expand All @@ -294,9 +294,10 @@
"Databases"
],
"operationId": "Databases_ListByServer",
"description": "Returns a list of databases by server.",
"description": "Returns a list of databases in a server.",
"x-ms-examples": {
"List databases by server": { "$ref": "../examples/DatabaseList.json" }
"List databases by server": { "$ref": "../examples/DatabaseList.json" },
"List databases by server with filter": { "$ref": "../examples/DatabaseListWithFilter.json" }
},
"parameters": [
{
Expand All @@ -310,6 +311,13 @@
},
{
"$ref": "#/parameters/ServerNameParameter"
},
{
"name": "$filter",
"in": "query",
"required": false,
"type": "string",
"description": "An OData filter expression that describes a subset of databases to return."
}
],
"responses": {
Expand Down Expand Up @@ -520,7 +528,7 @@
"Servers"
],
"operationId": "Servers_ListByResourceGroup",
"description": "Returns a server.",
"description": "Returns a list of servers in a resource group.",
"x-ms-examples": {
"List servers by resource group": { "$ref": "../examples/ServerListByResourceGroup.json" }
},
Expand Down Expand Up @@ -732,7 +740,7 @@
"ElasticPools"
],
"operationId": "ElasticPools_ListByServer",
"description": "Returns elastic pools.",
"description": "Returns a list of elastic pools in a server.",
"x-ms-examples":{
"List elastic pools": { "$ref": "../examples/ElasticPoolList.json" }
},
Expand Down Expand Up @@ -902,7 +910,7 @@
"ElasticPools"
],
"operationId": "ElasticPools_ListDatabases",
"description": "Returns a database inside of an elastic pool.",
"description": "Returns a list of databases in an elastic pool.",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
Expand Down Expand Up @@ -1060,7 +1068,7 @@
"RecommendedElasticPools"
],
"operationId": "RecommendedElasticPools_ListDatabases",
"description": "Returns a database inside of a recommented elastic pool.",
"description": "Returns a list of databases inside a recommented elastic pool.",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
Expand Down Expand Up @@ -2294,7 +2302,7 @@
"Restore"
],
"x-ms-enum": {
"name": "createMode",
"name": "CreateMode",
"modelAsString": true
},
"x-ms-mutability": [ "create" ]
Expand Down