diff --git a/arm-sql/2014-04-01/examples/DatabaseCreateCopy.json b/arm-sql/2014-04-01/examples/DatabaseCreateCopy.json new file mode 100644 index 000000000000..25999fb90521 --- /dev/null +++ b/arm-sql/2014-04-01/examples/DatabaseCreateCopy.json @@ -0,0 +1,71 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-4799", + "serverName": "sqlcrudtest-6440", + "databaseName": "testdb", + "api-version": "2014-04-01", + "parameters": { + "location": "Japan East", + "properties": { + "createMode": "Copy", + "sourceDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-4799/providers/Microsoft.Sql/servers/sqlcrudtest-3782/databases/testdb" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-4799/providers/Microsoft.Sql/servers/sqlcrudtest-6440/databases/testdb", + "name": "testdb", + "type": "Microsoft.Sql/servers/databases", + "location": "Japan East", + "kind": "v12.0,user", + "properties": { + "edition": "Standard", + "status": "Online", + "serviceLevelObjective": "S0", + "collation": "SQL_Latin1_General_CP1_CI_AS", + "maxSizeBytes": "268435456000", + "currentServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveName": "S0", + "sampleName": null, + "defaultSecondaryLocation": "Japan West", + "earliestRestoreDate": "2017-02-10T01:52:52.923Z", + "elasticPoolName": null, + "containmentState": 2, + "readScale": "Disabled", + "failoverGroupId": null + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-4799/providers/Microsoft.Sql/servers/sqlcrudtest-6440/databases/testdb", + "name": "testdb", + "type": "Microsoft.Sql/servers/databases", + "location": "Japan East", + "kind": "v12.0,user", + "properties": { + "edition": "Standard", + "status": "Online", + "serviceLevelObjective": "S0", + "collation": "SQL_Latin1_General_CP1_CI_AS", + "maxSizeBytes": "268435456000", + "currentServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveName": "S0", + "sampleName": null, + "defaultSecondaryLocation": "Japan West", + "earliestRestoreDate": "2017-02-10T01:52:52.923Z", + "elasticPoolName": null, + "containmentState": 2, + "readScale": "Disabled", + "failoverGroupId": null + } + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/DatabaseCreateMax.json b/arm-sql/2014-04-01/examples/DatabaseCreateMax.json new file mode 100644 index 000000000000..6ccc14114e0e --- /dev/null +++ b/arm-sql/2014-04-01/examples/DatabaseCreateMax.json @@ -0,0 +1,93 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-4799", + "serverName": "sqlcrudtest-6440", + "databaseName": "testdb", + "api-version": "2014-04-01", + "parameters": { + "location": "Japan East", + "properties": { + "databaseId": "816c5f7e-0e36-4eec-9c51-eee7a276c14c", + "edition": "Standard", + "status": "Online", + "createMode": "Default", + "serviceLevelObjective": "S0", + "collation": "SQL_Latin1_General_CP1_CI_AS", + "maxSizeBytes": "268435456000", + "creationDate": "2017-02-10T01:37:18.847Z", + "currentServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveName": "S0", + "defaultSecondaryLocation": "Japan West", + "earliestRestoreDate": "2017-02-10T01:48:08.237Z", + "containmentState": 2, + "readScale": "Disabled", + "sampleName": "AdventureWorksLT" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-8931/providers/Microsoft.Sql/servers/sqlcrudtest-1932/databases/testdb", + "name": "testdb", + "type": "Microsoft.Sql/servers/databases", + "location": "Japan East", + "kind": "v12.0,user", + "properties": { + "databaseId": "816c5f7e-0e36-4eec-9c51-eee7a276c14c", + "edition": "Standard", + "status": "Online", + "createMode": "Default", + "serviceLevelObjective": "S0", + "collation": "SQL_Latin1_General_CP1_CI_AS", + "maxSizeBytes": "268435456000", + "creationDate": "2017-02-10T01:37:18.847Z", + "currentServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveName": "S0", + "sampleName": null, + "sourceDatabaseId": null, + "defaultSecondaryLocation": "Japan West", + "earliestRestoreDate": "2017-02-10T01:48:08.237Z", + "elasticPoolName": null, + "containmentState": 2, + "readScale": "Disabled", + "failoverGroupId": null + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-8931/providers/Microsoft.Sql/servers/sqlcrudtest-1932/databases/testdb", + "name": "testdb", + "type": "Microsoft.Sql/servers/databases", + "location": "Japan East", + "kind": "v12.0,user", + "properties": { + "databaseId": "816c5f7e-0e36-4eec-9c51-eee7a276c14c", + "edition": "Standard", + "status": "Online", + "createMode": "Default", + "serviceLevelObjective": "S0", + "collation": "SQL_Latin1_General_CP1_CI_AS", + "maxSizeBytes": "268435456000", + "creationDate": "2017-02-10T01:37:18.847Z", + "currentServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveName": "S0", + "sampleName": null, + "sourceDatabaseId": null, + "defaultSecondaryLocation": "Japan West", + "earliestRestoreDate": "2017-02-10T01:48:08.237Z", + "elasticPoolName": null, + "containmentState": 2, + "readScale": "Disabled", + "failoverGroupId": null + } + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/DatabaseCreateMin.json b/arm-sql/2014-04-01/examples/DatabaseCreateMin.json new file mode 100644 index 000000000000..200d38c3ea78 --- /dev/null +++ b/arm-sql/2014-04-01/examples/DatabaseCreateMin.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-4799", + "serverName": "sqlcrudtest-5961", + "databaseName": "testdb", + "api-version": "2014-04-01", + "parameters": { + "location": "Japan East" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-4799/providers/Microsoft.Sql/servers/sqlcrudtest-5961/databases/testdb", + "name": "testdb", + "type": "Microsoft.Sql/servers/databases", + "location": "Japan East", + "kind": "v12.0,user", + "properties": { + "edition": "Standard", + "status": "Online", + "serviceLevelObjective": "S0", + "collation": "SQL_Latin1_General_CP1_CI_AS", + "maxSizeBytes": "268435456000", + "currentServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveName": "S0", + "sampleName": null, + "defaultSecondaryLocation": "Japan West", + "earliestRestoreDate": "2017-02-10T01:52:52.923Z", + "elasticPoolName": null, + "containmentState": 2, + "readScale": "Disabled", + "failoverGroupId": null + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-4799/providers/Microsoft.Sql/servers/sqlcrudtest-5961/databases/testdb", + "name": "testdb", + "type": "Microsoft.Sql/servers/databases", + "location": "Japan East", + "kind": "v12.0,user", + "properties": { + "edition": "Standard", + "status": "Online", + "serviceLevelObjective": "S0", + "collation": "SQL_Latin1_General_CP1_CI_AS", + "maxSizeBytes": "268435456000", + "currentServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveName": "S0", + "sampleName": null, + "defaultSecondaryLocation": "Japan West", + "earliestRestoreDate": "2017-02-10T01:52:52.923Z", + "elasticPoolName": null, + "containmentState": 2, + "readScale": "Disabled", + "failoverGroupId": null + } + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/DatabaseCreateNonReadableSecondary.json b/arm-sql/2014-04-01/examples/DatabaseCreateNonReadableSecondary.json new file mode 100644 index 000000000000..db6e56910e77 --- /dev/null +++ b/arm-sql/2014-04-01/examples/DatabaseCreateNonReadableSecondary.json @@ -0,0 +1,71 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-4799", + "serverName": "sqlcrudtest-6440", + "databaseName": "testdb", + "api-version": "2014-04-01", + "parameters": { + "location": "Japan East", + "properties": { + "createMode": "NonReadableSecondary", + "sourceDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-4799/providers/Microsoft.Sql/servers/sqlcrudtest-3782/databases/testdb" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-4799/providers/Microsoft.Sql/servers/sqlcrudtest-6440/databases/testdb", + "name": "testdb", + "type": "Microsoft.Sql/servers/databases", + "location": "Japan East", + "kind": "v12.0,user", + "properties": { + "edition": "Standard", + "status": "Online", + "serviceLevelObjective": "S0", + "collation": "SQL_Latin1_General_CP1_CI_AS", + "maxSizeBytes": "268435456000", + "currentServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveName": "S0", + "sampleName": null, + "defaultSecondaryLocation": "Japan West", + "earliestRestoreDate": "2017-02-10T01:52:52.923Z", + "elasticPoolName": null, + "containmentState": 2, + "readScale": "Disabled", + "failoverGroupId": null + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-4799/providers/Microsoft.Sql/servers/sqlcrudtest-6440/databases/testdb", + "name": "testdb", + "type": "Microsoft.Sql/servers/databases", + "location": "Japan East", + "kind": "v12.0,user", + "properties": { + "edition": "Standard", + "status": "Online", + "serviceLevelObjective": "S0", + "collation": "SQL_Latin1_General_CP1_CI_AS", + "maxSizeBytes": "268435456000", + "currentServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveName": "S0", + "sampleName": null, + "defaultSecondaryLocation": "Japan West", + "earliestRestoreDate": "2017-02-10T01:52:52.923Z", + "elasticPoolName": null, + "containmentState": 2, + "readScale": "Disabled", + "failoverGroupId": null + } + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/DatabaseCreateOnlineSecondary.json b/arm-sql/2014-04-01/examples/DatabaseCreateOnlineSecondary.json new file mode 100644 index 000000000000..cfc7142682cf --- /dev/null +++ b/arm-sql/2014-04-01/examples/DatabaseCreateOnlineSecondary.json @@ -0,0 +1,71 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-4799", + "serverName": "sqlcrudtest-6440", + "databaseName": "testdb", + "api-version": "2014-04-01", + "parameters": { + "location": "Japan East", + "properties": { + "createMode": "OnlineSecondary", + "sourceDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-4799/providers/Microsoft.Sql/servers/sqlcrudtest-3782/databases/testdb" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-4799/providers/Microsoft.Sql/servers/sqlcrudtest-3782/databases/testdb", + "name": "testdb", + "type": "Microsoft.Sql/servers/databases", + "location": "Japan East", + "kind": "v12.0,user", + "properties": { + "edition": "Standard", + "status": "Online", + "serviceLevelObjective": "S0", + "collation": "SQL_Latin1_General_CP1_CI_AS", + "maxSizeBytes": "268435456000", + "currentServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveName": "S0", + "sampleName": null, + "defaultSecondaryLocation": "Japan West", + "earliestRestoreDate": "2017-02-10T01:52:52.923Z", + "elasticPoolName": null, + "containmentState": 2, + "readScale": "Disabled", + "failoverGroupId": null + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-4799/providers/Microsoft.Sql/servers/sqlcrudtest-3782/databases/testdb", + "name": "testdb", + "type": "Microsoft.Sql/servers/databases", + "location": "Japan East", + "kind": "v12.0,user", + "properties": { + "edition": "Standard", + "status": "Online", + "serviceLevelObjective": "S0", + "collation": "SQL_Latin1_General_CP1_CI_AS", + "maxSizeBytes": "268435456000", + "currentServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveName": "S0", + "sampleName": null, + "defaultSecondaryLocation": "Japan West", + "earliestRestoreDate": "2017-02-10T01:52:52.923Z", + "elasticPoolName": null, + "containmentState": 2, + "readScale": "Disabled", + "failoverGroupId": null + } + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/DatabaseCreatePointInTimeRestore.json b/arm-sql/2014-04-01/examples/DatabaseCreatePointInTimeRestore.json new file mode 100644 index 000000000000..1e4c30c61970 --- /dev/null +++ b/arm-sql/2014-04-01/examples/DatabaseCreatePointInTimeRestore.json @@ -0,0 +1,72 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444 ", + "resourceGroupName": "sqlcrudtest-8412", + "serverName": "sqlcrudtest-3584", + "databaseName": "testdb", + "api-version": "2014-04-01", + "parameters": { + "location": "Japan East", + "properties": { + "createMode": "PointInTimeRestore", + "sourceDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444 /resourceGroups/sqlcrudtest-8412/providers/Microsoft.Sql/servers/sqlcrudtest-3782/databases/testdb", + "restorePointInTime": "2017-02-16T21:24:37.467Z" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-4799/providers/Microsoft.Sql/servers/sqlcrudtest-3782/databases/testdb", + "name": "testdb", + "type": "Microsoft.Sql/servers/databases", + "location": "Japan East", + "kind": "v12.0,user", + "properties": { + "edition": "Standard", + "status": "Online", + "serviceLevelObjective": "S0", + "collation": "SQL_Latin1_General_CP1_CI_AS", + "maxSizeBytes": "268435456000", + "currentServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveName": "S0", + "sampleName": null, + "defaultSecondaryLocation": "Japan West", + "earliestRestoreDate": "2017-02-10T01:52:52.923Z", + "elasticPoolName": null, + "containmentState": 2, + "readScale": "Disabled", + "failoverGroupId": null + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-4799/providers/Microsoft.Sql/servers/sqlcrudtest-3782/databases/testdb", + "name": "testdb", + "type": "Microsoft.Sql/servers/databases", + "location": "Japan East", + "kind": "v12.0,user", + "properties": { + "edition": "Standard", + "status": "Online", + "serviceLevelObjective": "S0", + "collation": "SQL_Latin1_General_CP1_CI_AS", + "maxSizeBytes": "268435456000", + "currentServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveName": "S0", + "sampleName": null, + "defaultSecondaryLocation": "Japan West", + "earliestRestoreDate": "2017-02-10T01:52:52.923Z", + "elasticPoolName": null, + "containmentState": 2, + "readScale": "Disabled", + "failoverGroupId": null + } + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/DatabaseDelete.json b/arm-sql/2014-04-01/examples/DatabaseDelete.json new file mode 100644 index 000000000000..875964938a23 --- /dev/null +++ b/arm-sql/2014-04-01/examples/DatabaseDelete.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-6852", + "serverName": "sqlcrudtest-2080", + "databaseName": "sqlcrudtest-331", + "api-version": "2014-04-01" + }, + "responses": { + "200": { + "body": "" + }, + "204": { + "body": "" + } + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/DatabaseGet.json b/arm-sql/2014-04-01/examples/DatabaseGet.json new file mode 100644 index 000000000000..adae2c92c872 --- /dev/null +++ b/arm-sql/2014-04-01/examples/DatabaseGet.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-6852", + "serverName": "sqlcrudtest-2080", + "databaseName": "sqlcrudtest-9187", + "api-version": "2014-04-01" + }, + "responses": { + "200": { + "body": { + "tags": { + "tagKey1": "TagValue1" + }, + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Sql/servers/sqlcrudtest-2080/databases/sqlcrudtest-9187", + "name": "sqlcrudtest-9187", + "type": "Microsoft.Sql/servers/databases", + "location": "Japan East", + "kind": "v12.0,user", + "properties": { + "databaseId": "200216b2-dc19-4866-85aa-f73fe4a1ebac", + "edition": "Basic", + "status": "Online", + "serviceLevelObjective": "Basic", + "collation": "SQL_Latin1_General_CP1_CI_AS", + "maxSizeBytes": "2147483648", + "creationDate": "2017-02-10T00:56:19.2Z", + "currentServiceObjectiveId": "dd6d99bb-f193-4ec1-86f2-43d3bccbc49c", + "requestedServiceObjectiveId": "dd6d99bb-f193-4ec1-86f2-43d3bccbc49c", + "requestedServiceObjectiveName": "Basic", + "sampleName": null, + "defaultSecondaryLocation": "Japan West", + "earliestRestoreDate": "2017-02-10T01:06:29.78Z", + "elasticPoolName": null, + "containmentState": 2, + "readScale": "Disabled", + "failoverGroupId": null + } + } + } + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/DatabaseList.json b/arm-sql/2014-04-01/examples/DatabaseList.json new file mode 100644 index 000000000000..2af0e12c1782 --- /dev/null +++ b/arm-sql/2014-04-01/examples/DatabaseList.json @@ -0,0 +1,146 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-6845", + "serverName": "sqlcrudtest-7177", + "api-version": "2014-04-01" + }, + "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 + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6845/providers/Microsoft.Sql/servers/sqlcrudtest-7177/databases/sqlcrudtest-1142", + "name": "sqlcrudtest-1142", + "type": "Microsoft.Sql/servers/databases", + "location": "Japan East", + "kind": "v12.0,user", + "properties": { + "databaseId": "11c1813c-52db-4d17-95d7-119eda1850b1", + "edition": "Standard", + "status": "Online", + "serviceLevelObjective": "S0", + "collation": "SQL_Latin1_General_CP1_CI_AS", + "maxSizeBytes": "268435456000", + "creationDate": "2017-02-10T01:03:34.04Z", + "currentServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveName": "S0", + "sampleName": null, + "defaultSecondaryLocation": "Japan West", + "earliestRestoreDate": "2017-02-10T01:14:10.233Z", + "elasticPoolName": null, + "containmentState": 2, + "readScale": "Disabled", + "failoverGroupId": null + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6845/providers/Microsoft.Sql/servers/sqlcrudtest-7177/databases/sqlcrudtest-2788", + "name": "sqlcrudtest-2788", + "type": "Microsoft.Sql/servers/databases", + "location": "Japan East", + "kind": "v12.0,user", + "properties": { + "databaseId": "d63e118b-41cf-49b9-8dac-aa6ef6f91731", + "edition": "Standard", + "status": "Online", + "serviceLevelObjective": "S0", + "collation": "SQL_Latin1_General_CP1_CI_AS", + "maxSizeBytes": "268435456000", + "creationDate": "2017-02-10T01:00:21.067Z", + "currentServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveName": "S0", + "sampleName": null, + "defaultSecondaryLocation": "Japan West", + "earliestRestoreDate": "2017-02-10T01:10:52.25Z", + "elasticPoolName": null, + "containmentState": 2, + "readScale": "Disabled", + "failoverGroupId": null + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6845/providers/Microsoft.Sql/servers/sqlcrudtest-7177/databases/sqlcrudtest-6877", + "name": "sqlcrudtest-6877", + "type": "Microsoft.Sql/servers/databases", + "location": "Japan East", + "kind": "v12.0,user", + "properties": { + "databaseId": "40ac16e8-855c-439c-b495-c97e918a771c", + "edition": "Standard", + "status": "Online", + "serviceLevelObjective": "S0", + "collation": "SQL_Latin1_General_CP1_CI_AS", + "maxSizeBytes": "268435456000", + "creationDate": "2017-02-10T01:02:28.853Z", + "currentServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveName": "S0", + "sampleName": null, + "defaultSecondaryLocation": "Japan West", + "earliestRestoreDate": "2017-02-10T01:13:21.66Z", + "elasticPoolName": null, + "containmentState": 2, + "readScale": "Disabled", + "failoverGroupId": null + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6845/providers/Microsoft.Sql/servers/sqlcrudtest-7177/databases/sqlcrudtest-9888", + "name": "sqlcrudtest-9888", + "type": "Microsoft.Sql/servers/databases", + "location": "Japan East", + "kind": "v12.0,user", + "properties": { + "databaseId": "59daf4ad-082f-4ac5-b38a-ed656b937980", + "edition": "Standard", + "status": "Online", + "serviceLevelObjective": "S0", + "collation": "SQL_Latin1_General_CP1_CI_AS", + "maxSizeBytes": "268435456000", + "creationDate": "2017-02-10T01:01:25.347Z", + "currentServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveName": "S0", + "sampleName": null, + "defaultSecondaryLocation": "Japan West", + "earliestRestoreDate": "2017-02-10T01:12:05.303Z", + "elasticPoolName": null, + "containmentState": 2, + "readScale": "Disabled", + "failoverGroupId": null + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/DatabaseUpdateElasticPool.json b/arm-sql/2014-04-01/examples/DatabaseUpdateElasticPool.json new file mode 100644 index 000000000000..04289daea9bf --- /dev/null +++ b/arm-sql/2014-04-01/examples/DatabaseUpdateElasticPool.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "subscriptionId": "9d4e2ad0-e20b-4464-9219-353bded52513", + "resourceGroupName": "sqlcrudtest-4799", + "serverName": "sqlcrudtest-6440", + "databaseName": "testdb", + "api-version": "2014-04-01", + "parameters": { + "properties": { + "elasticPoolName": "7537" + }, + "location": "Japan East" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-4799/providers/Microsoft.Sql/servers/sqlcrudtest-6440/databases/testdb", + "name": "testdb", + "type": "Microsoft.Sql/servers/databases", + "location": "Japan East", + "kind": "v12.0,user", + "properties": { + "edition": "Standard", + "status": "Online", + "serviceLevelObjective": "S0", + "collation": "SQL_Latin1_General_CP1_CI_AS", + "maxSizeBytes": "268435456000", + "currentServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveName": "S0", + "sampleName": null, + "defaultSecondaryLocation": "Japan West", + "earliestRestoreDate": "2017-02-10T01:52:52.923Z", + "elasticPoolName": null, + "containmentState": 2, + "readScale": "Disabled", + "failoverGroupId": null + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-4799/providers/Microsoft.Sql/servers/sqlcrudtest-6440/databases/testdb", + "name": "testdb", + "type": "Microsoft.Sql/servers/databases", + "location": "Japan East", + "kind": "v12.0,user", + "properties": { + "edition": "Standard", + "status": "Online", + "serviceLevelObjective": "S0", + "collation": "SQL_Latin1_General_CP1_CI_AS", + "maxSizeBytes": "268435456000", + "currentServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveName": "S0", + "sampleName": null, + "defaultSecondaryLocation": "Japan West", + "earliestRestoreDate": "2017-02-10T01:52:52.923Z", + "elasticPoolName": null, + "containmentState": 2, + "readScale": "Disabled", + "failoverGroupId": null + } + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/DatabaseUpdateMax.json b/arm-sql/2014-04-01/examples/DatabaseUpdateMax.json new file mode 100644 index 000000000000..a965a09c4506 --- /dev/null +++ b/arm-sql/2014-04-01/examples/DatabaseUpdateMax.json @@ -0,0 +1,82 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-4799", + "serverName": "sqlcrudtest-5961", + "databaseName": "testdb", + "api-version": "2014-04-01", + "parameters": { + "location": "Japan East", + "properties": { + "edition": "Standard", + "status": "Online", + "createMode": "Default", + "serviceLevelObjective": "S0", + "collation": "SQL_Latin1_General_CP1_CI_AS", + "maxSizeBytes": "268435456000", + "currentServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveName": "S0", + "defaultSecondaryLocation": "Japan West", + "earliestRestoreDate": "2017-02-10T01:52:52.923Z", + "containmentState": 2, + "readScale": "Disabled" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-4799/providers/Microsoft.Sql/servers/sqlcrudtest-5961/databases/testdb", + "name": "testdb", + "type": "Microsoft.Sql/servers/databases", + "location": "Japan East", + "kind": "v12.0,user", + "properties": { + "edition": "Standard", + "status": "Online", + "serviceLevelObjective": "S0", + "collation": "SQL_Latin1_General_CP1_CI_AS", + "maxSizeBytes": "268435456000", + "currentServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveName": "S0", + "sampleName": null, + "defaultSecondaryLocation": "Japan West", + "earliestRestoreDate": "2017-02-10T01:52:52.923Z", + "elasticPoolName": null, + "containmentState": 2, + "readScale": "Disabled", + "failoverGroupId": null + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-4799/providers/Microsoft.Sql/servers/sqlcrudtest-5961/databases/testdb", + "name": "testdb", + "type": "Microsoft.Sql/servers/databases", + "location": "Japan East", + "kind": "v12.0,user", + "properties": { + "edition": "Standard", + "status": "Online", + "serviceLevelObjective": "S0", + "collation": "SQL_Latin1_General_CP1_CI_AS", + "maxSizeBytes": "268435456000", + "currentServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveName": "S0", + "sampleName": null, + "defaultSecondaryLocation": "Japan West", + "earliestRestoreDate": "2017-02-10T01:52:52.923Z", + "elasticPoolName": null, + "containmentState": 2, + "readScale": "Disabled", + "failoverGroupId": null + } + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/DatabaseUpdateMin.json b/arm-sql/2014-04-01/examples/DatabaseUpdateMin.json new file mode 100644 index 000000000000..200d38c3ea78 --- /dev/null +++ b/arm-sql/2014-04-01/examples/DatabaseUpdateMin.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-4799", + "serverName": "sqlcrudtest-5961", + "databaseName": "testdb", + "api-version": "2014-04-01", + "parameters": { + "location": "Japan East" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-4799/providers/Microsoft.Sql/servers/sqlcrudtest-5961/databases/testdb", + "name": "testdb", + "type": "Microsoft.Sql/servers/databases", + "location": "Japan East", + "kind": "v12.0,user", + "properties": { + "edition": "Standard", + "status": "Online", + "serviceLevelObjective": "S0", + "collation": "SQL_Latin1_General_CP1_CI_AS", + "maxSizeBytes": "268435456000", + "currentServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveName": "S0", + "sampleName": null, + "defaultSecondaryLocation": "Japan West", + "earliestRestoreDate": "2017-02-10T01:52:52.923Z", + "elasticPoolName": null, + "containmentState": 2, + "readScale": "Disabled", + "failoverGroupId": null + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-4799/providers/Microsoft.Sql/servers/sqlcrudtest-5961/databases/testdb", + "name": "testdb", + "type": "Microsoft.Sql/servers/databases", + "location": "Japan East", + "kind": "v12.0,user", + "properties": { + "edition": "Standard", + "status": "Online", + "serviceLevelObjective": "S0", + "collation": "SQL_Latin1_General_CP1_CI_AS", + "maxSizeBytes": "268435456000", + "currentServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "requestedServiceObjectiveName": "S0", + "sampleName": null, + "defaultSecondaryLocation": "Japan West", + "earliestRestoreDate": "2017-02-10T01:52:52.923Z", + "elasticPoolName": null, + "containmentState": 2, + "readScale": "Disabled", + "failoverGroupId": null + } + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/DatabaseUsageMetricsList.json b/arm-sql/2014-04-01/examples/DatabaseUsageMetricsList.json new file mode 100644 index 000000000000..c45bdda650a0 --- /dev/null +++ b/arm-sql/2014-04-01/examples/DatabaseUsageMetricsList.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-6730", + "serverName": "sqlcrudtest-9007", + "databaseName": "3481", + "api-version": "2014-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "database_size", + "resourceName": "3481", + "displayName": "Database Size", + "currentValue": 4194304, + "limit": 268435456000, + "unit": "Bytes", + "nextResetTime": null + } + ] + } + } + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/ElasticPoolActivityList.json b/arm-sql/2014-04-01/examples/ElasticPoolActivityList.json new file mode 100644 index 000000000000..5d455ae22061 --- /dev/null +++ b/arm-sql/2014-04-01/examples/ElasticPoolActivityList.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-4291", + "serverName": "sqlcrudtest-6574", + "elasticPoolName": "8749", + "api-version": "2014-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-4291/providers/Microsoft.Sql/servers/sqlcrudtest-6574/elasticPools/8749/elasticPoolActivity/851f1672-f7f0-46f6-a262-ee9b51e18e97", + "name": "851f1672-f7f0-46f6-a262-ee9b51e18e97", + "type": "Microsoft.Sql/servers/elasticPools/elasticPoolActivity", + "location": "Japan East", + "properties": { + "operationId": "851f1672-f7f0-46f6-a262-ee9b51e18e97", + "serverName": "sqlcrudtest-6574", + "elasticPoolName": "8749", + "state": "COMPLETED", + "operation": "CREATE", + "errorCode": null, + "errorMessage": null, + "errorSeverity": null, + "startTime": "2017-02-10T02:03:06.16Z", + "endTime": "2017-02-10T02:03:23.263Z", + "percentComplete": 100, + "requestedElasticPoolName": null, + "requestedDtuGuarantee": 100, + "requestedDatabaseDtuCap": 5, + "requestedDatabaseDtuGuarantee": 0, + "requestedStorageLimitInGB": 9, + "requestedStorageLimitInMB": 10000 + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/ElasticPoolCreateMax.json b/arm-sql/2014-04-01/examples/ElasticPoolCreateMax.json new file mode 100644 index 000000000000..e921e47be0f4 --- /dev/null +++ b/arm-sql/2014-04-01/examples/ElasticPoolCreateMax.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-2369", + "serverName": "sqlcrudtest-8069", + "elasticPoolName": "sqlcrudtest-8102", + "api-version": "2014-04-01", + "parameters": { + "location": "Japan East", + "properties": { + "creationDate": "2017-02-10T01:25:25.033Z", + "edition": "Basic", + "state": "Ready", + "dtu": 50, + "databaseDtuMin": 0, + "databaseDtuMax": 5, + "storageMB": 5000 + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-2369/providers/Microsoft.Sql/servers/sqlcrudtest-8069/elasticPools/sqlcrudtest-8102", + "name": "sqlcrudtest-8102", + "type": "Microsoft.Sql/servers/elasticPools", + "location": "Japan East", + "kind": null, + "properties": { + "creationDate": "2017-02-10T01:25:25.033Z", + "edition": "Basic", + "state": "Ready", + "dtu": 50, + "databaseDtuMin": 0, + "databaseDtuMax": 5, + "storageMB": 5000 + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-2369/providers/Microsoft.Sql/servers/sqlcrudtest-8069/elasticPools/sqlcrudtest-8102", + "name": "sqlcrudtest-8102", + "type": "Microsoft.Sql/servers/elasticPools", + "location": "Japan East", + "kind": null, + "properties": { + "creationDate": "2017-02-10T01:25:25.033Z", + "edition": "Basic", + "state": "Ready", + "dtu": 50, + "databaseDtuMin": 0, + "databaseDtuMax": 5, + "storageMB": 5000 + } + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/ElasticPoolCreateMin.json b/arm-sql/2014-04-01/examples/ElasticPoolCreateMin.json new file mode 100644 index 000000000000..e6f386eb5135 --- /dev/null +++ b/arm-sql/2014-04-01/examples/ElasticPoolCreateMin.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-2369", + "serverName": "sqlcrudtest-8069", + "elasticPoolName": "sqlcrudtest-8102", + "api-version": "2014-04-01", + "parameters": { + "location": "Japan East" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-2369/providers/Microsoft.Sql/servers/sqlcrudtest-8069/elasticPools/sqlcrudtest-8102", + "name": "sqlcrudtest-8102", + "type": "Microsoft.Sql/servers/elasticPools", + "location": "Japan East", + "kind": null, + "properties": { + "creationDate": "2017-02-10T01:25:25.033Z", + "edition": "Basic", + "state": "Ready", + "dtu": 50, + "databaseDtuMin": 0, + "databaseDtuMax": 5, + "storageMB": 5000 + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-2369/providers/Microsoft.Sql/servers/sqlcrudtest-8069/elasticPools/sqlcrudtest-8102", + "name": "sqlcrudtest-8102", + "type": "Microsoft.Sql/servers/elasticPools", + "location": "Japan East", + "kind": null, + "properties": { + "creationDate": "2017-02-10T01:25:25.033Z", + "edition": "Basic", + "state": "Ready", + "dtu": 50, + "databaseDtuMin": 0, + "databaseDtuMax": 5, + "storageMB": 5000 + } + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/ElasticPoolDatabaseActivityList.json b/arm-sql/2014-04-01/examples/ElasticPoolDatabaseActivityList.json new file mode 100644 index 000000000000..2e3d15e1694b --- /dev/null +++ b/arm-sql/2014-04-01/examples/ElasticPoolDatabaseActivityList.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "subscriptionId": "9d4e2ad0-e20b-4464-9219-353bded52513", + "resourceGroupName": "sqlcrudtest-4673", + "serverName": "sqlcrudtest-603", + "elasticPoolName": "7537", + "api-version": "2014-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/9d4e2ad0-e20b-4464-9219-353bded52513/resourceGroups/sqlcrudtest-4673/providers/Microsoft.Sql/servers/sqlcrudtest-603/elasticPools/7537/elasticPoolDatabaseActivity/3a3272b3-f1fe-423c-9feb-7b843157eda5", + "name": "3a3272b3-f1fe-423c-9feb-7b843157eda5", + "type": "Microsoft.Sql/servers/elasticPools/elasticPoolDatabaseActivity", + "location": "Japan East", + "properties": { + "operationId": "3a3272b3-f1fe-423c-9feb-7b843157eda5", + "serverName": "sqlcrudtest-603", + "databaseName": "2396", + "state": "COMPLETED", + "operation": "UPDATE", + "errorCode": null, + "errorMessage": null, + "errorSeverity": null, + "startTime": "2016-10-23T03:07:12.577", + "endTime": "2016-10-23T03:08:02.95", + "percentComplete": 100, + "currentServiceObjective": "ElasticPool", + "requestedServiceObjective": null, + "currentElasticPoolName": "7537", + "requestedElasticPoolName": null + } + }, + { + "id": "/subscriptions/9d4e2ad0-e20b-4464-9219-353bded52513/resourceGroups/sqlcrudtest-4673/providers/Microsoft.Sql/servers/sqlcrudtest-603/elasticPools/7537/elasticPoolDatabaseActivity/95108a78-384e-48d3-b4de-7bf23b93a26d", + "name": "95108a78-384e-48d3-b4de-7bf23b93a26d", + "type": "Microsoft.Sql/servers/elasticPools/elasticPoolDatabaseActivity", + "location": "Japan East", + "properties": { + "operationId": "95108a78-384e-48d3-b4de-7bf23b93a26d", + "serverName": "sqlcrudtest-603", + "databaseName": "2396", + "state": "COMPLETED", + "operation": "CREATE", + "errorCode": null, + "errorMessage": null, + "errorSeverity": null, + "startTime": "2016-10-23T03:06:11.19", + "endTime": "2016-10-23T03:06:49.197", + "percentComplete": 100, + "currentServiceObjective": "ElasticPool", + "requestedServiceObjective": null, + "currentElasticPoolName": "7537", + "requestedElasticPoolName": null + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/ElasticPoolDelete.json b/arm-sql/2014-04-01/examples/ElasticPoolDelete.json new file mode 100644 index 000000000000..d3edd853cb5d --- /dev/null +++ b/arm-sql/2014-04-01/examples/ElasticPoolDelete.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-3129", + "serverName": "sqlcrudtest-228", + "elasticPoolName": "sqlcrudtest-3851", + "api-version": "2014-04-01" + }, + "responses": { + "200": { + "body": "" + }, + "204": { + "body": "" + } + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/ElasticPoolGet.json b/arm-sql/2014-04-01/examples/ElasticPoolGet.json new file mode 100644 index 000000000000..51b5b83459a8 --- /dev/null +++ b/arm-sql/2014-04-01/examples/ElasticPoolGet.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-2369", + "serverName": "sqlcrudtest-8069", + "elasticPoolName": "sqlcrudtest-8102", + "api-version": "2014-04-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-2369/providers/Microsoft.Sql/servers/sqlcrudtest-8069/elasticPools/sqlcrudtest-8102", + "name": "sqlcrudtest-8102", + "type": "Microsoft.Sql/servers/elasticPools", + "location": "Japan East", + "kind": null, + "properties": { + "creationDate": "2017-02-10T01:25:25.033Z", + "edition": "Basic", + "state": "Ready", + "dtu": 50, + "databaseDtuMin": 0, + "databaseDtuMax": 5, + "storageMB": 5000 + } + } + } + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/ElasticPoolList.json b/arm-sql/2014-04-01/examples/ElasticPoolList.json new file mode 100644 index 000000000000..9cb5801fa126 --- /dev/null +++ b/arm-sql/2014-04-01/examples/ElasticPoolList.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-2369", + "serverName": "sqlcrudtest-8069", + "api-version": "2014-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-2369/providers/Microsoft.Sql/servers/sqlcrudtest-8069/elasticPools/sqlcrudtest-2729", + "name": "sqlcrudtest-2729", + "type": "Microsoft.Sql/servers/elasticPools", + "location": "Japan East", + "kind": null, + "properties": { + "creationDate": "2017-02-10T01:27:21.32Z", + "edition": "Basic", + "state": "Ready", + "dtu": 50, + "databaseDtuMin": 0, + "databaseDtuMax": 5, + "storageMB": 5000 + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-2369/providers/Microsoft.Sql/servers/sqlcrudtest-8069/elasticPools/sqlcrudtest-3191", + "name": "sqlcrudtest-3191", + "type": "Microsoft.Sql/servers/elasticPools", + "location": "Japan East", + "kind": null, + "properties": { + "creationDate": "2017-02-10T01:26:26.45Z", + "edition": "Basic", + "state": "Ready", + "dtu": 50, + "databaseDtuMin": 0, + "databaseDtuMax": 5, + "storageMB": 5000 + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-2369/providers/Microsoft.Sql/servers/sqlcrudtest-8069/elasticPools/sqlcrudtest-8102", + "name": "sqlcrudtest-8102", + "type": "Microsoft.Sql/servers/elasticPools", + "location": "Japan East", + "kind": null, + "properties": { + "creationDate": "2017-02-10T01:25:25.033Z", + "edition": "Basic", + "state": "Ready", + "dtu": 50, + "databaseDtuMin": 0, + "databaseDtuMax": 5, + "storageMB": 5000 + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/ElasticPoolUpdateMax.json b/arm-sql/2014-04-01/examples/ElasticPoolUpdateMax.json new file mode 100644 index 000000000000..e921e47be0f4 --- /dev/null +++ b/arm-sql/2014-04-01/examples/ElasticPoolUpdateMax.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-2369", + "serverName": "sqlcrudtest-8069", + "elasticPoolName": "sqlcrudtest-8102", + "api-version": "2014-04-01", + "parameters": { + "location": "Japan East", + "properties": { + "creationDate": "2017-02-10T01:25:25.033Z", + "edition": "Basic", + "state": "Ready", + "dtu": 50, + "databaseDtuMin": 0, + "databaseDtuMax": 5, + "storageMB": 5000 + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-2369/providers/Microsoft.Sql/servers/sqlcrudtest-8069/elasticPools/sqlcrudtest-8102", + "name": "sqlcrudtest-8102", + "type": "Microsoft.Sql/servers/elasticPools", + "location": "Japan East", + "kind": null, + "properties": { + "creationDate": "2017-02-10T01:25:25.033Z", + "edition": "Basic", + "state": "Ready", + "dtu": 50, + "databaseDtuMin": 0, + "databaseDtuMax": 5, + "storageMB": 5000 + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-2369/providers/Microsoft.Sql/servers/sqlcrudtest-8069/elasticPools/sqlcrudtest-8102", + "name": "sqlcrudtest-8102", + "type": "Microsoft.Sql/servers/elasticPools", + "location": "Japan East", + "kind": null, + "properties": { + "creationDate": "2017-02-10T01:25:25.033Z", + "edition": "Basic", + "state": "Ready", + "dtu": 50, + "databaseDtuMin": 0, + "databaseDtuMax": 5, + "storageMB": 5000 + } + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/ElasticPoolUpdateMin.json b/arm-sql/2014-04-01/examples/ElasticPoolUpdateMin.json new file mode 100644 index 000000000000..e6f386eb5135 --- /dev/null +++ b/arm-sql/2014-04-01/examples/ElasticPoolUpdateMin.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-2369", + "serverName": "sqlcrudtest-8069", + "elasticPoolName": "sqlcrudtest-8102", + "api-version": "2014-04-01", + "parameters": { + "location": "Japan East" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-2369/providers/Microsoft.Sql/servers/sqlcrudtest-8069/elasticPools/sqlcrudtest-8102", + "name": "sqlcrudtest-8102", + "type": "Microsoft.Sql/servers/elasticPools", + "location": "Japan East", + "kind": null, + "properties": { + "creationDate": "2017-02-10T01:25:25.033Z", + "edition": "Basic", + "state": "Ready", + "dtu": 50, + "databaseDtuMin": 0, + "databaseDtuMax": 5, + "storageMB": 5000 + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-2369/providers/Microsoft.Sql/servers/sqlcrudtest-8069/elasticPools/sqlcrudtest-8102", + "name": "sqlcrudtest-8102", + "type": "Microsoft.Sql/servers/elasticPools", + "location": "Japan East", + "kind": null, + "properties": { + "creationDate": "2017-02-10T01:25:25.033Z", + "edition": "Basic", + "state": "Ready", + "dtu": 50, + "databaseDtuMin": 0, + "databaseDtuMax": 5, + "storageMB": 5000 + } + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/FirewallRuleCreate.json b/arm-sql/2014-04-01/examples/FirewallRuleCreate.json new file mode 100644 index 000000000000..013c284d09de --- /dev/null +++ b/arm-sql/2014-04-01/examples/FirewallRuleCreate.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "firewallrulecrudtest-12", + "serverName": "firewallrulecrudtest-6285", + "firewallRuleName": "firewallrulecrudtest-5370", + "api-version": "2014-04-01", + "parameters": { + "properties": { + "startIpAddress": "0.0.0.3", + "endIpAddress": "0.0.0.3" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/firewallrulecrudtest-12/providers/Microsoft.Sql/servers/firewallrulecrudtest-6285/firewallRules/firewallrulecrudtest-5370", + "name": "firewallrulecrudtest-5370", + "type": "Microsoft.Sql/servers/firewallRules", + "location": "Japan East", + "kind": "v12.0", + "properties": { + "startIpAddress": "0.0.0.3", + "endIpAddress": "0.0.0.3" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/firewallrulecrudtest-12/providers/Microsoft.Sql/servers/firewallrulecrudtest-6285/firewallRules/firewallrulecrudtest-5370", + "name": "firewallrulecrudtest-5370", + "type": "Microsoft.Sql/servers/firewallRules", + "location": "Japan East", + "kind": "v12.0", + "properties": { + "startIpAddress": "0.0.0.3", + "endIpAddress": "0.0.0.3" + } + } + } + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/FirewallRuleDelete.json b/arm-sql/2014-04-01/examples/FirewallRuleDelete.json new file mode 100644 index 000000000000..ecd892fb9fcc --- /dev/null +++ b/arm-sql/2014-04-01/examples/FirewallRuleDelete.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "firewallrulecrudtest-9886", + "serverName": "firewallrulecrudtest-2368", + "firewallRuleName": "firewallrulecrudtest-7011", + "api-version": "2014-04-01" + }, + "responses": { + "200": { + "body": "" + }, + "204": { + "body": "" + } + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/FirewallRuleGet.json b/arm-sql/2014-04-01/examples/FirewallRuleGet.json new file mode 100644 index 000000000000..64d0aa854341 --- /dev/null +++ b/arm-sql/2014-04-01/examples/FirewallRuleGet.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "firewallrulecrudtest-12", + "serverName": "firewallrulecrudtest-6285", + "firewallRuleName": "firewallrulecrudtest-2304", + "api-version": "2014-04-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/firewallrulecrudtest-12/providers/Microsoft.Sql/servers/firewallrulecrudtest-6285/firewallRules/firewallrulecrudtest-2304", + "name": "firewallrulecrudtest-2304", + "type": "Microsoft.Sql/servers/firewallRules", + "location": "Japan East", + "kind": "v12.0", + "properties": { + "startIpAddress": "0.0.0.0", + "endIpAddress": "0.0.0.0" + } + } + } + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/FirewallRuleList.json b/arm-sql/2014-04-01/examples/FirewallRuleList.json new file mode 100644 index 000000000000..39618f867038 --- /dev/null +++ b/arm-sql/2014-04-01/examples/FirewallRuleList.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "firewallrulecrudtest-12", + "serverName": "firewallrulecrudtest-6285", + "api-version": "2014-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/firewallrulecrudtest-12/providers/Microsoft.Sql/servers/firewallrulecrudtest-6285/firewallRules/firewallrulecrudtest-2304", + "name": "firewallrulecrudtest-2304", + "type": "Microsoft.Sql/servers/firewallRules", + "location": "Japan East", + "kind": "v12.0", + "properties": { + "startIpAddress": "0.0.0.0", + "endIpAddress": "0.0.0.0" + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/firewallrulecrudtest-12/providers/Microsoft.Sql/servers/firewallrulecrudtest-6285/firewallRules/firewallrulecrudtest-3927", + "name": "firewallrulecrudtest-3927", + "type": "Microsoft.Sql/servers/firewallRules", + "location": "Japan East", + "kind": "v12.0", + "properties": { + "startIpAddress": "0.0.0.1", + "endIpAddress": "0.0.0.1" + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/firewallrulecrudtest-12/providers/Microsoft.Sql/servers/firewallrulecrudtest-6285/firewallRules/firewallrulecrudtest-5370", + "name": "firewallrulecrudtest-5370", + "type": "Microsoft.Sql/servers/firewallRules", + "location": "Japan East", + "kind": "v12.0", + "properties": { + "startIpAddress": "0.0.0.3", + "endIpAddress": "0.0.0.3" + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/firewallrulecrudtest-12/providers/Microsoft.Sql/servers/firewallrulecrudtest-6285/firewallRules/firewallrulecrudtest-5767", + "name": "firewallrulecrudtest-5767", + "type": "Microsoft.Sql/servers/firewallRules", + "location": "Japan East", + "kind": "v12.0", + "properties": { + "startIpAddress": "0.0.0.2", + "endIpAddress": "0.0.0.2" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/FirewallRuleUpdate.json b/arm-sql/2014-04-01/examples/FirewallRuleUpdate.json new file mode 100644 index 000000000000..c28a0bab1701 --- /dev/null +++ b/arm-sql/2014-04-01/examples/FirewallRuleUpdate.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "firewallrulecrudtest-12", + "serverName": "firewallrulecrudtest-6285", + "firewallRuleName": "firewallrulecrudtest-3927", + "api-version": "2014-04-01", + "parameters": { + "properties": { + "startIpAddress": "0.0.0.1", + "endIpAddress": "0.0.0.1" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/firewallrulecrudtest-12/providers/Microsoft.Sql/servers/firewallrulecrudtest-6285/firewallRules/firewallrulecrudtest-3927", + "name": "firewallrulecrudtest-3927", + "type": "Microsoft.Sql/servers/firewallRules", + "location": "Japan East", + "kind": "v12.0", + "properties": { + "startIpAddress": "0.0.0.1", + "endIpAddress": "0.0.0.1" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/firewallrulecrudtest-12/providers/Microsoft.Sql/servers/firewallrulecrudtest-6285/firewallRules/firewallrulecrudtest-3927", + "name": "firewallrulecrudtest-3927", + "type": "Microsoft.Sql/servers/firewallRules", + "location": "Japan East", + "kind": "v12.0", + "properties": { + "startIpAddress": "0.0.0.1", + "endIpAddress": "0.0.0.1" + } + } + } + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/ReplicationLinkDelete.json b/arm-sql/2014-04-01/examples/ReplicationLinkDelete.json new file mode 100644 index 000000000000..579bd631adea --- /dev/null +++ b/arm-sql/2014-04-01/examples/ReplicationLinkDelete.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-4799", + "serverName": "sqlcrudtest-6440", + "databaseName": "testdb", + "linkId": "5b301b68-03f6-4b26-b0f4-73ebb8634238", + "api-version": "2014-04-01" + }, + "responses": { + "200": { + "body": "" + }, + "204": { + "body": "" + } + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/ReplicationLinkFailover.json b/arm-sql/2014-04-01/examples/ReplicationLinkFailover.json new file mode 100644 index 000000000000..bba2acedff38 --- /dev/null +++ b/arm-sql/2014-04-01/examples/ReplicationLinkFailover.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-8931", + "serverName": "sqlcrudtest-2137", + "databaseName": "testdb", + "linkId": "f0550bf5-07ce-4270-8e4b-71737975973a", + "api-version": "2014-04-01" + }, + "responses": { + "202": {}, + "204":{} + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/ReplicationLinkGet.json b/arm-sql/2014-04-01/examples/ReplicationLinkGet.json new file mode 100644 index 000000000000..e0c12c819fb3 --- /dev/null +++ b/arm-sql/2014-04-01/examples/ReplicationLinkGet.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-8931", + "serverName": "sqlcrudtest-2137", + "databaseName": "testdb", + "linkId": "f0550bf5-07ce-4270-8e4b-71737975973a", + "api-version": "2014-04-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-8931/providers/Microsoft.Sql/servers/sqlcrudtest-2137/databases/testdb/replicationLinks/f0550bf5-07ce-4270-8e4b-71737975973a", + "name": "f0550bf5-07ce-4270-8e4b-71737975973a", + "type": "Microsoft.Sql/servers/databases/replicationLinks", + "location": "Japan East", + "properties": { + "partnerServer": "sqlcrudtest-1932", + "partnerDatabase": "testdb", + "partnerLocation": "Japan East", + "role": "Secondary", + "partnerRole": "Primary", + "replicationMode": "ASYNC", + "startTime": "2017-02-10T01:37:49.153", + "percentComplete": 100, + "replicationState": "CATCH_UP", + "isTerminationAllowed": true + } + } + } + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/ReplicationLinkList.json b/arm-sql/2014-04-01/examples/ReplicationLinkList.json new file mode 100644 index 000000000000..6211146c4698 --- /dev/null +++ b/arm-sql/2014-04-01/examples/ReplicationLinkList.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-4799", + "serverName": "sqlcrudtest-6440", + "databaseName": "testdb", + "api-version": "2014-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-4799/providers/Microsoft.Sql/servers/sqlcrudtest-6440/databases/testdb/replicationLinks/5b301b68-03f6-4b26-b0f4-73ebb8634238", + "name": "5b301b68-03f6-4b26-b0f4-73ebb8634238", + "type": "Microsoft.Sql/servers/databases/replicationLinks", + "location": "Japan East", + "properties": { + "partnerServer": "sqlcrudtest-5961", + "partnerDatabase": "testdb", + "partnerLocation": "Japan East", + "role": "Secondary", + "partnerRole": "Primary", + "replicationMode": "ASYNC", + "startTime": "2017-02-10T01:44:27.117", + "percentComplete": 100, + "replicationState": "CATCH_UP", + "isTerminationAllowed": true + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/ServerCreateMax.json b/arm-sql/2014-04-01/examples/ServerCreateMax.json new file mode 100644 index 000000000000..59d04db72226 --- /dev/null +++ b/arm-sql/2014-04-01/examples/ServerCreateMax.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-7398", + "serverName": "sqlcrudtest-4645", + "api-version": "2014-04-01", + "parameters": { + "tags": { + "tagKey1": "TagValue1" + }, + "location": "Japan East", + "properties": { + "fullyQualifiedDomainName": "sqlcrudtest-4645.database.windows.net", + "administratorLogin": "dummylogin", + "administratorLoginPassword": "Un53cuRE!", + "version": "12.0", + "state": "Ready" + } + } + }, + "responses": { + "200": { + "body": { + "tags": { + "tagKey1": "TagValue1" + }, + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/servers/sqlcrudtest-4645", + "name": "sqlcrudtest-4645", + "type": "Microsoft.Sql/servers", + "location": "Japan East", + "kind": "v12.0", + "properties": { + "fullyQualifiedDomainName": "sqlcrudtest-4645.database.windows.net", + "administratorLogin": "dummylogin", + "administratorLoginPassword": "Un53cuRE!", + "externalAdministratorLogin": null, + "externalAdministratorSid": null, + "version": "12.0", + "state": "Ready" + } + } + }, + "201": { + "body": { + "tags": { + "tagKey1": "TagValue1" + }, + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/servers/sqlcrudtest-4645", + "name": "sqlcrudtest-4645", + "type": "Microsoft.Sql/servers", + "location": "Japan East", + "kind": "v12.0", + "properties": { + "fullyQualifiedDomainName": "sqlcrudtest-4645.database.windows.net", + "administratorLogin": "dummylogin", + "administratorLoginPassword": "Un53cuRE!", + "externalAdministratorLogin": null, + "externalAdministratorSid": null, + "version": "12.0", + "state": "Ready" + } + } + } + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/ServerCreateMin.json b/arm-sql/2014-04-01/examples/ServerCreateMin.json new file mode 100644 index 000000000000..4911654fb1b3 --- /dev/null +++ b/arm-sql/2014-04-01/examples/ServerCreateMin.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-7398", + "serverName": "sqlcrudtest-4645", + "api-version": "2014-04-01", + "parameters": { + "properties": { + "administratorLogin": "dummylogin", + "administratorLoginPassword": "Un53cuRE!" + }, + "location": "Japan East" + } + }, + "responses": { + "200": { + "body": { + "tags": { + "tagKey1": "TagValue1" + }, + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/servers/sqlcrudtest-4645", + "name": "sqlcrudtest-4645", + "type": "Microsoft.Sql/servers", + "location": "Japan East", + "kind": "v12.0", + "properties": { + "fullyQualifiedDomainName": "sqlcrudtest-4645.database.windows.net", + "administratorLogin": "dummylogin", + "administratorLoginPassword": "Un53cuRE!", + "externalAdministratorLogin": null, + "externalAdministratorSid": null, + "version": "12.0", + "state": "Ready" + } + } + }, + "201": { + "body": { + "tags": { + "tagKey1": "TagValue1" + }, + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/servers/sqlcrudtest-4645", + "name": "sqlcrudtest-4645", + "type": "Microsoft.Sql/servers", + "location": "Japan East", + "kind": "v12.0", + "properties": { + "fullyQualifiedDomainName": "sqlcrudtest-4645.database.windows.net", + "administratorLogin": "dummylogin", + "administratorLoginPassword": "Un53cuRE!", + "externalAdministratorLogin": null, + "externalAdministratorSid": null, + "version": "12.0", + "state": "Ready" + } + } + } + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/ServerDelete.json b/arm-sql/2014-04-01/examples/ServerDelete.json new file mode 100644 index 000000000000..fe7ecc54225e --- /dev/null +++ b/arm-sql/2014-04-01/examples/ServerDelete.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-7398", + "serverName": "sqlcrudtest-6661", + "api-version": "2014-04-01" + }, + "responses": { + "200": { + "body": "" + }, + "204": { + "body": "" + } + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/ServerGet.json b/arm-sql/2014-04-01/examples/ServerGet.json new file mode 100644 index 000000000000..30315275af52 --- /dev/null +++ b/arm-sql/2014-04-01/examples/ServerGet.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-7398", + "serverName": "sqlcrudtest-4645", + "api-version": "2014-04-01" + }, + "responses": { + "200": { + "body": { + "tags": { + "tagKey1": "TagValue1" + }, + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/servers/sqlcrudtest-4645", + "name": "sqlcrudtest-4645", + "type": "Microsoft.Sql/servers", + "location": "Japan East", + "kind": "v12.0", + "properties": { + "fullyQualifiedDomainName": "sqlcrudtest-4645.database.windows.net", + "administratorLogin": "dummylogin", + "administratorLoginPassword": null, + "externalAdministratorLogin": null, + "externalAdministratorSid": null, + "version": "12.0", + "state": "Ready" + } + } + } + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/ServerList.json b/arm-sql/2014-04-01/examples/ServerList.json new file mode 100644 index 000000000000..4636fd2655a2 --- /dev/null +++ b/arm-sql/2014-04-01/examples/ServerList.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "api-version": "2014-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/servers/sqlcrudtest-4645", + "name": "sqlcrudtest-4645", + "type": "Microsoft.Sql/servers", + "location": "Japan East", + "kind": "v12.0", + "properties": { + "fullyQualifiedDomainName": "sqlcrudtest-4645.database.windows.net", + "administratorLogin": "dummylogin", + "administratorLoginPassword": null, + "externalAdministratorLogin": null, + "externalAdministratorSid": null, + "version": "12.0", + "state": "Ready" + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/servers/sqlcrudtest-6661", + "name": "sqlcrudtest-6661", + "type": "Microsoft.Sql/servers", + "location": "Japan East", + "kind": "v12.0", + "properties": { + "fullyQualifiedDomainName": "sqlcrudtest-6661.database.windows.net", + "administratorLogin": "dummylogin", + "administratorLoginPassword": null, + "externalAdministratorLogin": null, + "externalAdministratorSid": null, + "version": "12.0", + "state": "Ready" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/ServerListByResourceGroup.json b/arm-sql/2014-04-01/examples/ServerListByResourceGroup.json new file mode 100644 index 000000000000..ab78156a6763 --- /dev/null +++ b/arm-sql/2014-04-01/examples/ServerListByResourceGroup.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-7398", + "api-version": "2014-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/servers/sqlcrudtest-4645", + "name": "sqlcrudtest-4645", + "type": "Microsoft.Sql/servers", + "location": "Japan East", + "kind": "v12.0", + "properties": { + "fullyQualifiedDomainName": "sqlcrudtest-4645.database.windows.net", + "administratorLogin": "dummylogin", + "administratorLoginPassword": null, + "externalAdministratorLogin": null, + "externalAdministratorSid": null, + "version": "12.0", + "state": "Ready" + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/servers/sqlcrudtest-6661", + "name": "sqlcrudtest-6661", + "type": "Microsoft.Sql/servers", + "location": "Japan East", + "kind": "v12.0", + "properties": { + "fullyQualifiedDomainName": "sqlcrudtest-6661.database.windows.net", + "administratorLogin": "dummylogin", + "administratorLoginPassword": null, + "externalAdministratorLogin": null, + "externalAdministratorSid": null, + "version": "12.0", + "state": "Ready" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/ServerUpdateMax.json b/arm-sql/2014-04-01/examples/ServerUpdateMax.json new file mode 100644 index 000000000000..59d04db72226 --- /dev/null +++ b/arm-sql/2014-04-01/examples/ServerUpdateMax.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-7398", + "serverName": "sqlcrudtest-4645", + "api-version": "2014-04-01", + "parameters": { + "tags": { + "tagKey1": "TagValue1" + }, + "location": "Japan East", + "properties": { + "fullyQualifiedDomainName": "sqlcrudtest-4645.database.windows.net", + "administratorLogin": "dummylogin", + "administratorLoginPassword": "Un53cuRE!", + "version": "12.0", + "state": "Ready" + } + } + }, + "responses": { + "200": { + "body": { + "tags": { + "tagKey1": "TagValue1" + }, + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/servers/sqlcrudtest-4645", + "name": "sqlcrudtest-4645", + "type": "Microsoft.Sql/servers", + "location": "Japan East", + "kind": "v12.0", + "properties": { + "fullyQualifiedDomainName": "sqlcrudtest-4645.database.windows.net", + "administratorLogin": "dummylogin", + "administratorLoginPassword": "Un53cuRE!", + "externalAdministratorLogin": null, + "externalAdministratorSid": null, + "version": "12.0", + "state": "Ready" + } + } + }, + "201": { + "body": { + "tags": { + "tagKey1": "TagValue1" + }, + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/servers/sqlcrudtest-4645", + "name": "sqlcrudtest-4645", + "type": "Microsoft.Sql/servers", + "location": "Japan East", + "kind": "v12.0", + "properties": { + "fullyQualifiedDomainName": "sqlcrudtest-4645.database.windows.net", + "administratorLogin": "dummylogin", + "administratorLoginPassword": "Un53cuRE!", + "externalAdministratorLogin": null, + "externalAdministratorSid": null, + "version": "12.0", + "state": "Ready" + } + } + } + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/ServerUpdateMin.json b/arm-sql/2014-04-01/examples/ServerUpdateMin.json new file mode 100644 index 000000000000..4911654fb1b3 --- /dev/null +++ b/arm-sql/2014-04-01/examples/ServerUpdateMin.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-7398", + "serverName": "sqlcrudtest-4645", + "api-version": "2014-04-01", + "parameters": { + "properties": { + "administratorLogin": "dummylogin", + "administratorLoginPassword": "Un53cuRE!" + }, + "location": "Japan East" + } + }, + "responses": { + "200": { + "body": { + "tags": { + "tagKey1": "TagValue1" + }, + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/servers/sqlcrudtest-4645", + "name": "sqlcrudtest-4645", + "type": "Microsoft.Sql/servers", + "location": "Japan East", + "kind": "v12.0", + "properties": { + "fullyQualifiedDomainName": "sqlcrudtest-4645.database.windows.net", + "administratorLogin": "dummylogin", + "administratorLoginPassword": "Un53cuRE!", + "externalAdministratorLogin": null, + "externalAdministratorSid": null, + "version": "12.0", + "state": "Ready" + } + } + }, + "201": { + "body": { + "tags": { + "tagKey1": "TagValue1" + }, + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/servers/sqlcrudtest-4645", + "name": "sqlcrudtest-4645", + "type": "Microsoft.Sql/servers", + "location": "Japan East", + "kind": "v12.0", + "properties": { + "fullyQualifiedDomainName": "sqlcrudtest-4645.database.windows.net", + "administratorLogin": "dummylogin", + "administratorLoginPassword": "Un53cuRE!", + "externalAdministratorLogin": null, + "externalAdministratorSid": null, + "version": "12.0", + "state": "Ready" + } + } + } + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/examples/ServerUsageMetricsList.json b/arm-sql/2014-04-01/examples/ServerUsageMetricsList.json new file mode 100644 index 000000000000..b659e33053a7 --- /dev/null +++ b/arm-sql/2014-04-01/examples/ServerUsageMetricsList.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-6730", + "serverName": "sqlcrudtest-9007", + "api-version": "2014-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "server_dtu_quota", + "resourceName": "sqlcrudtest-9007", + "displayName": "Database Throughput Unit Quota", + "currentValue": 0, + "limit": 45000, + "unit": "DTUs", + "nextResetTime": null + }, + { + "name": "server_dtu_quota_current", + "resourceName": "sqlcrudtest-9007", + "displayName": "Database Throughput Unit Quota", + "currentValue": 0, + "limit": 45000, + "unit": "DTUs", + "nextResetTime": null + } + ] + } + } + } +} \ No newline at end of file diff --git a/arm-sql/2014-04-01/swagger/firewallRules.json b/arm-sql/2014-04-01/swagger/firewallRules.json index b2a1cf2e889b..bedd761b340a 100644 --- a/arm-sql/2014-04-01/swagger/firewallRules.json +++ b/arm-sql/2014-04-01/swagger/firewallRules.json @@ -23,6 +23,10 @@ ], "operationId": "Servers_CreateOrUpdateFirewallRule", "description": "Creates or updates an Azure SQL server firewall rule.", + "x-ms-examples": { + "Create a firewall rule max/min": { "$ref": "../examples/FirewallRuleCreate.json" }, + "Update a firewall rule max/min": { "$ref": "../examples/FirewallRuleUpdate.json" } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -74,6 +78,9 @@ ], "operationId": "Servers_DeleteFirewallRule", "description": "Deletes an Azure SQL server firewall rule.", + "x-ms-examples": { + "Delete a firewall rule": { "$ref": "../examples/FirewallRuleDelete.json" } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -110,6 +117,9 @@ ], "operationId": "Servers_GetFirewallRule", "description": "Returns an Azure SQL server firewall rule.", + "x-ms-examples": { + "Get Firewall Rule": { "$ref": "../examples/FirewallRuleGet.json" } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -148,6 +158,9 @@ ], "operationId": "Servers_ListFirewallRules", "description": "Returns a list of Azure SQL server firewall rules.", + "x-ms-examples": { + "List Firewall Rules": { "$ref": "../examples/FirewallRuleList.json" } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -174,6 +187,28 @@ "nextLinkName": null } } + }, + "/providers/Microsoft.Sql/operations": { + "get": { + "tags": [ + "Operations" + ], + "description": "Lists all of the available SQL Rest API operations.", + "operationId": "ListOperations", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + } + } + } } }, "definitions": { @@ -181,13 +216,14 @@ "properties": { "startIpAddress": { "type": "string", - "description": "The start IP address of the Azure SQL server firewall rule. Must be IPv4 format." + "description": "The start IP address of the Azure SQL server firewall rule. Must be IPv4 format. Use value '0.0.0.0' to represent all Azure-internal IP addresses." }, "endIpAddress": { "type": "string", - "description": "The end IP address of the Azure SQL server firewall rule. Must be IPv4 format." + "description": "The end IP address of the Azure SQL server firewall rule. Must be IPv4 format. Must be greater than or equal to startIpAddress. Use value '0.0.0.0' to represent all Azure-internal IP addresses." } }, + "required": ["startIpAddress", "endIpAddress"], "description": "Represents the properties of an Azure SQL server firewall rule." }, "ServerFirewallRule": { @@ -202,6 +238,11 @@ "description": "Location of the server that contains this firewall rule.", "readOnly": true }, + "type": { + "type": "string", + "description": "Type of resource this is.", + "readOnly": true + }, "properties": { "$ref": "#/definitions/ServerFirewallRuleProperties", "description": "The properties representing the resource.", @@ -241,6 +282,49 @@ "description": "The resource ID." } } + }, + "OperationListResult": { + "description": "Result of the request to list SQL 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 SQL operations supported by the SQL resource provider." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + } + }, + "Operation": { + "description": "SQL 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 SQL Database.", + "type": "string" + }, + "resource": { + "description": "Resource on which the operation is performed: Server, Database, etc.", + "type": "string" + }, + "operation": { + "description": "Type of operation: get, read, delete, etc.", + "type": "string" + } + } + } + } } }, "parameters": { diff --git a/arm-sql/2014-04-01/swagger/replicationLinks.json b/arm-sql/2014-04-01/swagger/replicationLinks.json index 5175da86eaff..e0e557dcdea8 100644 --- a/arm-sql/2014-04-01/swagger/replicationLinks.json +++ b/arm-sql/2014-04-01/swagger/replicationLinks.json @@ -23,6 +23,9 @@ ], "operationId": "Databases_DeleteReplicationLink", "description": "Deletes the Azure SQL database replication link with the given ID. Cannot be done during failover.", + "x-ms-examples": { + "Delete a replication link": { "$ref": "../examples/ReplicationLinkDelete.json" } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -66,6 +69,9 @@ ], "operationId": "Databases_GetReplicationLink", "description": "Gets information about an Azure SQL database replication link.", + "x-ms-examples": { + "Get a replication link": { "$ref": "../examples/ReplicationLinkGet.json" } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -111,6 +117,9 @@ ], "operationId": "Databases_FailoverReplicationLink", "description": "Failover the Azure SQL database replication link with the given ID.", + "x-ms-examples": { + "Failover a replication link": { "$ref": "../examples/ReplicationLinkFailover.json" } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -203,6 +212,9 @@ ], "operationId": "Databases_ListReplicationLinks", "description": "Gets information about Azure SQL database replication links.", + "x-ms-examples": { + "List Replication links": { "$ref": "../examples/ReplicationLinkList.json" } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -236,11 +248,43 @@ "nextLinkName": null } } + }, + "/providers/Microsoft.Sql/operations": { + "get": { + "tags": [ + "Operations" + ], + "description": "Lists all of the available SQL Rest API operations.", + "operationId": "ListOperations", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + } + } + } } }, "definitions": { "ReplicationLinkProperties": { "properties": { + "isTerminationAllowed": { + "readOnly": true, + "type": "boolean", + "description": "Legacy value indicating whether termination is allowed. Currently always returns true." + }, + "replicationMode": { + "readOnly": true, + "type": "string", + "description": "Replication mode of this replication link." + }, "partnerServer": { "readOnly": true, "type": "string", @@ -290,7 +334,7 @@ "readOnly": true, "type": "string", "format": "date-time", - "description": "The start time for the replication link (ISO8601 format)." + "description": "The start time for the replication link." }, "percentComplete": { "readOnly": true, @@ -318,6 +362,16 @@ }, "ReplicationLink": { "properties": { + "location": { + "type": "string", + "description": "Location of the server that contains this firewall rule.", + "readOnly": true + }, + "type": { + "type": "string", + "description": "Type of resource this is.", + "readOnly": true + }, "properties": { "x-ms-client-flatten": true, "$ref": "#/definitions/ReplicationLinkProperties", @@ -357,6 +411,49 @@ "description": "The resource ID." } } + }, + "OperationListResult": { + "description": "Result of the request to list SQL 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 SQL operations supported by the SQL resource provider." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + } + }, + "Operation": { + "description": "SQL 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 SQL Database.", + "type": "string" + }, + "resource": { + "description": "Resource on which the operation is performed: Server, Database, etc.", + "type": "string" + }, + "operation": { + "description": "Type of operation: get, read, delete, etc.", + "type": "string" + } + } + } + } } }, "parameters": { diff --git a/arm-sql/2014-04-01/swagger/sql.core.json b/arm-sql/2014-04-01/swagger/sql.core.json index b468b84791dd..afb8281b9de7 100644 --- a/arm-sql/2014-04-01/swagger/sql.core.json +++ b/arm-sql/2014-04-01/swagger/sql.core.json @@ -142,6 +142,17 @@ ], "operationId": "Databases_CreateOrUpdate", "description": "Creates a new Azure SQL database or updates an existing Azure SQL database. Location is a required property in the request body, and it must be the same as the location of the SQL server.", + "x-ms-examples": { + "Create a database min": { "$ref": "../examples/DatabaseCreateMin.json" }, + "Create a database max": { "$ref": "../examples/DatabaseCreateMax.json" }, + "Create a database as a copy": { "$ref": "../examples/DatabaseCreateCopy.json" }, + "Create a database as an online secondary": { "$ref": "../examples/DatabaseCreateOnlineSecondary.json" }, + "Create a database as a non-readable secondary": { "$ref": "../examples/DatabaseCreateNonReadableSecondary.json" }, + "Create a database as a point in time restore": { "$ref": "../examples/DatabaseCreatePointInTimeRestore.json" }, + "Update a database's elastic pool'": { "$ref": "../examples/DatabaseUpdateElasticPool.json" }, + "Update a database max": { "$ref": "../examples/DatabaseUpdateMax.json" }, + "Update a database min": { "$ref": "../examples/DatabaseUpdateMin.json" } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -186,10 +197,7 @@ } }, "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/Database" - } + "description": "Accepted" } }, "x-ms-long-running-operation": true @@ -200,6 +208,9 @@ ], "operationId": "Databases_Delete", "description": "Deletes an Azure SQL database.", + "x-ms-examples": { + "Delete a database": { "$ref": "../examples/DatabaseDelete.json" } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -236,6 +247,9 @@ ], "operationId": "Databases_Get", "description": "Gets information about an Azure SQL database.", + "x-ms-examples": { + "Get a database": { "$ref": "../examples/DatabaseGet.json" } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -281,6 +295,9 @@ ], "operationId": "Databases_ListByServer", "description": "Returns information about an Azure SQL database.", + "x-ms-examples": { + "List databases by server": { "$ref": "../examples/DatabaseList.json" } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -315,6 +332,9 @@ ], "operationId": "Databases_ListUsages", "description": "Returns information about Azure SQL database usages.", + "x-ms-examples": { + "List database usage metrics": { "$ref": "../examples/DatabaseUsageMetricsList.json" } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -356,6 +376,9 @@ ], "operationId": "Servers_List", "description": "Returns information about an Azure SQL server.", + "x-ms-examples": { + "List servers": { "$ref": "../examples/ServerList.json" } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -383,7 +406,11 @@ "Servers" ], "operationId": "Servers_CreateOrUpdate", - "description": "Creates a new Azure SQL server.", + "description": "Creates or updates a new Azure SQL server.", + "x-ms-examples": { + "Create server min": { "$ref": "../examples/ServerCreateMin.json" }, + "Create server max": { "$ref": "../examples/ServerCreateMax.json" } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -428,6 +455,9 @@ ], "operationId": "Servers_Delete", "description": "Deletes a SQL server.", + "x-ms-examples": { + "Delete SQL Server": { "$ref": "../examples/ServerDelete.json" } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -457,6 +487,9 @@ ], "operationId": "Servers_GetByResourceGroup", "description": "Gets information about an Azure SQL server.", + "x-ms-examples": { + "Get Server": { "$ref": "../examples/ServerGet.json" } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -488,6 +521,9 @@ ], "operationId": "Servers_ListByResourceGroup", "description": "Returns information about an Azure SQL server.", + "x-ms-examples": { + "List servers by resource group": { "$ref": "../examples/ServerListByResourceGroup.json" } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -519,6 +555,9 @@ ], "operationId": "Servers_ListUsages", "description": "Returns information about Azure SQL server usage.", + "x-ms-examples":{ + "List servers usages": { "$ref": "../examples/ServerUsageMetricsList.json" } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -553,6 +592,12 @@ ], "operationId": "ElasticPools_CreateOrUpdate", "description": "Creates a new Azure SQL elastic pool or updates an existing Azure SQL elastic pool.", + "x-ms-examples":{ + "Create elastic pool max": { "$ref": "../examples/ElasticPoolCreateMax.json" }, + "Create elastic pool min": { "$ref": "../examples/ElasticPoolCreateMin.json" }, + "Update elastic pool max": { "$ref": "../examples/ElasticPoolUpdateMax.json" }, + "Update elastic pool min": { "$ref": "../examples/ElasticPoolUpdateMin.json" } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -597,10 +642,7 @@ } }, "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/ElasticPool" - } + "description": "Accepted" } }, "x-ms-long-running-operation": true @@ -611,6 +653,9 @@ ], "operationId": "ElasticPools_Delete", "description": "Deletes the Azure SQL elastic pool.", + "x-ms-examples":{ + "Delete elastic pool": { "$ref": "../examples/ElasticPoolDelete.json" } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -647,6 +692,9 @@ ], "operationId": "ElasticPools_Get", "description": "Gets information about an Azure SQL elastic pool.", + "x-ms-examples":{ + "Get elastic pool": { "$ref": "../examples/ElasticPoolGet.json" } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -685,6 +733,9 @@ ], "operationId": "ElasticPools_ListByServer", "description": "Returns information about Azure SQL elastic pools.", + "x-ms-examples":{ + "List elastic pools": { "$ref": "../examples/ElasticPoolList.json" } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -719,6 +770,9 @@ ], "operationId": "ElasticPools_ListActivity", "description": "Returns information about Azure SQL elastic pool activities.", + "x-ms-examples":{ + "List Elastic pool activity": { "$ref": "../examples/ElasticPoolActivityList.json" } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -760,6 +814,9 @@ ], "operationId": "ElasticPools_ListDatabaseActivity", "description": "Returns information about activity on Azure SQL databases inside of an Azure SQL elastic pool.", + "x-ms-examples":{ + "List elastic pool database activity": { "$ref": "../examples/ElasticPoolDatabaseActivityList.json" } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -1366,6 +1423,28 @@ "nextLinkName": null } } + }, + "/providers/Microsoft.Sql/operations": { + "get": { + "tags": [ + "Operations" + ], + "description": "Lists all of the available SQL Rest API operations.", + "operationId": "ListOperations", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + } + } + } } }, "definitions": { @@ -1408,7 +1487,7 @@ "dtu": { "type": "number", "format": "double", - "description": "The DTU for the SQL Azure Recommended Elastic Pool." + "description": "The DTU for the Azure Sql Recommended Elastic Pool." }, "databaseDtuMin": { "type": "number", @@ -1509,35 +1588,6 @@ "required": ["value"], "description": "Represents the response to a List Azure SQL Recommended Elastic Pool metrics request." }, - "RecommendedDatabaseProperties": { - "properties": { - "Name": { - "type": "string", - "description": "The name of the Azure SQL database being upgraded." - }, - "TargetEdition": { - "type": "string", - "description": "The target edition for the Azure SQL database being upgraded.", - "enum": [ - "Basic", - "Standard", - "Premium", - "Free", - "Stretch", - "DataWarehouse" - ], - "x-ms-enum": { - "name": "TargetDatabaseEditions", - "modelAsString": true - } - }, - "TargetServiceLevelObjective": { - "type": "string", - "description": "The target Service Level Objective for the Azure SQL database being upgraded." - } - }, - "description": "Represents the properties of a recommended Azure SQL Database being upgraded." - }, "ElasticPoolProperties": { "properties": { "creationDate": { @@ -1572,22 +1622,22 @@ "dtu": { "type": "integer", "format": "int32", - "description": "The total shared DTU for the SQL Azure Database Elastic Pool." + "description": "The total shared DTU for the Azure Sql Database Elastic Pool." }, "databaseDtuMax": { "type": "integer", "format": "int32", - "description": "The maximum DTU any one SQL Azure Database can consume." + "description": "The maximum DTU any one Azure Sql Database can consume." }, "databaseDtuMin": { "type": "integer", "format": "int32", - "description": "The minimum DTU all SQL Azure Databases are guaranteed." + "description": "The minimum DTU all Azure Sql Databases are guaranteed." }, "storageMB": { "type": "integer", "format": "int32", - "description": "Gets storage limit for the SQL Azure Database Elastic Pool in MB." + "description": "Gets storage limit for the Azure Sql Database Elastic Pool in MB." } }, "description": "Represents the properties of an Azure SQL Elastic Pool." @@ -1598,6 +1648,11 @@ "$ref": "#/definitions/ElasticPoolProperties", "description": "The properties representing the resource.", "x-ms-client-flatten": true + }, + "kind": { + "readOnly": true, + "type": "string", + "description": "Kind of elastic pool. This is metadata used for the Azure portal experience." } }, "allOf": [ @@ -1710,6 +1765,30 @@ "readOnly": true, "type": "string", "description": "The current state of the operation." + }, + "requestedStorageLimitInMB": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "The requested storage limit in MB." + }, + "requestedDatabaseDtuGuarantee": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "The requested per Database DTU guarantee." + }, + "requestedDatabaseDtuCap": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "The requested per Database DTU cap." + }, + "requestedDtuGuarantee": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "The requested DTU guarantee." } }, "description": "Represents the properties of an Azure SQL Elastic Pool." @@ -1873,17 +1952,44 @@ }, "administratorLogin": { "type": "string", - "description": "Administrator username for the server. Can only be specified when the server is being created (and is required for creation)." + "description": "Administrator username for the server. Can only be specified when the server is being created (and is required for creation).", + "x-ms-mutability": [ "create", "read" ] }, "administratorLoginPassword": { "type": "string", - "description": "The administrator login password (required for server creation)." + "description": "The administrator login password (required for server creation).", + "x-ms-mutability": [ "create", "update" ] + }, + "externalAdministratorSid": { + "readOnly": true, + "type": "string", + "format": "uuid", + "description": "The ID of the Active Azure Directory object with admin permissions on this server. Legacy parameter, always null. To check for Active Directory admin, query .../servers/{serverName}/administrators." + }, + "externalAdministratorLogin": { + "readOnly": true, + "type": "string", + "description": "The display name of the Azure Active Directory object with admin permissions on this server. Legacy parameter, always null. To check for Active Directory admin, query .../servers/{serverName}/administrators" + }, + "state": { + "readOnly": true, + "type": "string", + "description": "The state of the server.", + "enum": ["Ready", "Disabled"], + "x-ms-enum": { + "name": "ServerState" + } } }, "description": "Represents the properties of an Azure SQL server." }, "Server": { "properties": { + "kind": { + "readOnly": true, + "type": "string", + "description": "Kind of sql server. This is metadata used for the Azure portal experience." + }, "properties": { "$ref": "#/definitions/ServerProperties", "description": "Represents the properties of the resource.", @@ -1969,7 +2075,7 @@ "Drop", "Rebuild" ], - "description": "The proposed index action. You can create a missing index, drop an unused index, or rebuild an existing index to improve its performance. Possible values are 'Create', 'Drop', 'Rebuild'.", + "description": "The proposed index action. You can create a missing index, drop an unused index, or rebuild an existing index to improve its performance.", "x-ms-enum": { "name": "RecommendedIndexActions" } @@ -1990,7 +2096,7 @@ "Success" ], "type": "string", - "description": "The current recommendation state. Current options are: 'Active', 'Pending', 'Executing', 'Verifying', 'Pending Revert', 'Reverting', 'Reverted', 'Ignored', 'Expired', 'Blocked', 'Success'.", + "description": "The current recommendation state.", "x-ms-enum": { "name": "RecommendedIndexStates" } @@ -2122,7 +2228,8 @@ "properties": { "collation": { "type": "string", - "description": "The collation of the Azure SQL database." + "description": "The collation of the Azure SQL database. If createMode is not Default, this value is ignored.", + "x-ms-mutability": ["create", "read"] }, "creationDate": { "readOnly": true, @@ -2148,7 +2255,13 @@ "789681b8-ca10-4eb0-bdf2-e0b050601b40", "7203483a-c4fb-4304-9e9f-17c71c904f5d", "a7d1b92d-c987-4375-b54d-2b1d0e0f5bb0", - "a7c4c615-cfb1-464b-b252-925be0a19446" + "a7c4c615-cfb1-464b-b252-925be0a19446", + "26e021db-f1f9-4c98-84c6-92af8ef433d7", + "29dd7459-4a7c-4e56-be22-f0adda49440d", + "c99ac918-dbea-463f-a475-16ec020fdc12", + "620323bf-2879-4807-b30d-c2e6d7b3b3aa", + "33d0db1f-6893-4210-99f9-463fb9b496a4", + "da24338c-a6c9-46c2-a4bf-4ac95b496ae4" ], "description": "The current Service Level Objective ID of the Azure SQL database. This is the ID of the Service Level Objective that is currently active.", "x-ms-enum": { @@ -2165,11 +2278,11 @@ "readOnly": true, "type": "string", "format": "date-time", - "description": "The recovery period start date of the Azure SQL database. This records the start date and time when recovery is available for this Azure SQL Database (ISO8601 format)." + "description": "This records the earliest start date and time that restore is available for this Azure SQL Database (ISO8601 format)." }, "createMode": { "type": "string", - "description": "Specifies the type of database to create.", + "description": "Specifies the type of database to create. If createMode is not set to Default, sourceDatabaseId must be specified. If createMode is set to PointInTimeRestore, then restorePointInTime must be specified. If createMode is set to Restore, then sourceDatabaseDeletionDate must be specified.", "enum": [ "Copy", "Default", @@ -2182,15 +2295,23 @@ "x-ms-enum": { "name": "createMode", "modelAsString": true - } + }, + "x-ms-mutability": [ "create" ] }, "sourceDatabaseId": { "type": "string", - "description": "Conditional. Specifies the resource ID of the source database. If createMode is not set to Default, then this value must be specified. The name of the source database must be the same. NOTE: Collation, Edition, and MaxSizeBytes must remain the same while the link is active. Values specified for these parameters will be ignored." + "description": "Conditional. If createMode is not set to Default, then this value must be specified. Specifies the resource ID of the source database. If createMode is NonReadableSecondary or OnlineSecondary, the name of the source database must be the same as this new database.", + "x-ms-mutability": [ "create" ] + }, + "restorePointInTime": { + "type": "string", + "format": "date-time", + "description": "Conditional. If createMode is set to PointInTimeRestore, then this value must be specified. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. Must be greater than or equal to the source database's earliestRestoreDate value.", + "x-ms-mutability": [ "create" ] }, "edition": { "type": "string", - "description": "The edition of the Azure SQL database. The DatabaseEditions enumeration contains all the valid editions.", + "description": "The edition of the Azure SQL database. The DatabaseEditions enumeration contains all the valid editions. If createMode is NonReadableSecondary or OnlineSecondary, this value is ignored.", "enum": [ "Web", "Business", @@ -2199,7 +2320,8 @@ "Premium", "Free", "Stretch", - "DataWarehouse" + "DataWarehouse", + "System" ], "x-ms-enum": { "name": "DatabaseEditions", @@ -2208,7 +2330,7 @@ }, "maxSizeBytes": { "type": "string", - "description": "The max size of the Azure SQL database expressed in bytes. Note: Only the following sizes are supported (in addition to limitations being placed on each edition): { 100 MB | 500 MB |1 GB | 5 GB | 10 GB | 20 GB | 30 GB … 150 GB | 200 GB … 500 GB }" + "description": "The max size of the Azure SQL database expressed in bytes. If createMode is not Default, this value is ignored. Note: Only the following sizes are supported (in addition to limitations being placed on each edition): { 100 MB | 500 MB |1 GB | 5 GB | 10 GB | 20 GB | 30 GB … 150 GB | 200 GB … 500 GB }" }, "requestedServiceObjectiveId": { "type": "string", @@ -2221,7 +2343,13 @@ "789681b8-ca10-4eb0-bdf2-e0b050601b40", "7203483a-c4fb-4304-9e9f-17c71c904f5d", "a7d1b92d-c987-4375-b54d-2b1d0e0f5bb0", - "a7c4c615-cfb1-464b-b252-925be0a19446" + "a7c4c615-cfb1-464b-b252-925be0a19446", + "26e021db-f1f9-4c98-84c6-92af8ef433d7", + "29dd7459-4a7c-4e56-be22-f0adda49440d", + "c99ac918-dbea-463f-a475-16ec020fdc12", + "620323bf-2879-4807-b30d-c2e6d7b3b3aa", + "33d0db1f-6893-4210-99f9-463fb9b496a4", + "da24338c-a6c9-46c2-a4bf-4ac95b496ae4" ], "description": "The configured Service Level Objective ID of the Azure SQL database. This is the Service Level Objective that is in the process of being applied to the Azure SQL database. Once successfully updated, it will match the value of currentServiceObjectiveId property.", "x-ms-enum": { @@ -2239,7 +2367,16 @@ "S3", "P1", "P2", - "P3" + "P3", + "P4", + "P6", + "P11", + "P15", + "System", + "System1", + "System2", + "System3", + "System4" ], "x-ms-enum": { "modelAsString": true, @@ -2258,7 +2395,16 @@ "S3", "P1", "P2", - "P3" + "P3", + "P4", + "P6", + "P11", + "P15", + "System", + "System1", + "System2", + "System3", + "System4" ], "x-ms-enum": { "modelAsString": true, @@ -2288,11 +2434,6 @@ }, "description": "The list of service tier advisors for this database. Expanded property" }, - "upgradeHint": { - "$ref": "#/definitions/UpgradeHint", - "readOnly": true, - "description": "The upgrade hint for this database." - }, "schemas": { "readOnly": true, "type": "array", @@ -2316,12 +2457,46 @@ "$ref": "#/definitions/RecommendedIndex" }, "description": "The recommended indices for this database." + }, + "failoverGroupId": { + "readOnly": true, + "type": "string", + "format": "uuid", + "description": "The id indicating the failover group containing this database." + }, + "readScale": { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ], + "description": "Conditional. If the database is a geo-secondary, readScale indicates whether read-only connections are allowed to this database or not.", + "x-ms-enum": { + "name": "ReadScale" + } + }, + "sampleName": { + "type": "string", + "enum": [ + "AdventureWorksLT" + ], + "description": "Indicates the name of the sample schema to apply when creating this database. If createMode is not Default, this value is ignored.", + "x-ms-enum": { + "modelAsString": true, + "name": "SampleName" + }, + "x-ms-mutability": [ "create" ] } }, "description": "Represents the properties of an Azure SQL Database." }, "Database": { "properties": { + "kind": { + "readOnly": true, + "type": "string", + "description": "Kind of database. This is metadata used for the Azure portal experience." + }, "properties": { "$ref": "#/definitions/DatabaseProperties", "description": "The properties representing the resource.", @@ -2493,7 +2668,16 @@ "S3", "P1", "P2", - "P3" + "P3", + "P4", + "P6", + "P11", + "P15", + "System", + "System1", + "System2", + "System3", + "System4" ], "x-ms-enum": { "modelAsString": true, @@ -2512,7 +2696,13 @@ "789681b8-ca10-4eb0-bdf2-e0b050601b40", "7203483a-c4fb-4304-9e9f-17c71c904f5d", "a7d1b92d-c987-4375-b54d-2b1d0e0f5bb0", - "a7c4c615-cfb1-464b-b252-925be0a19446" + "a7c4c615-cfb1-464b-b252-925be0a19446", + "26e021db-f1f9-4c98-84c6-92af8ef433d7", + "29dd7459-4a7c-4e56-be22-f0adda49440d", + "c99ac918-dbea-463f-a475-16ec020fdc12", + "620323bf-2879-4807-b30d-c2e6d7b3b3aa", + "33d0db1f-6893-4210-99f9-463fb9b496a4", + "da24338c-a6c9-46c2-a4bf-4ac95b496ae4" ], "x-ms-enum": { "modelAsString": true, @@ -2762,7 +2952,12 @@ "description": "The next reset time for the metric (ISO8601 format)." } }, - "description": "Represents Azure SQL Database metrics." + "description": "Represents Azure SQL Database metrics.", + "allOf": [ + { + "$ref": "#/definitions/SqlSubResource" + } + ] }, "DatabaseMetricListResult": { "properties": { @@ -2779,6 +2974,11 @@ }, "ServerMetric": { "properties": { + "name": { + "readOnly": true, + "type": "string", + "description": "Name of the server usage metric." + }, "resourceName": { "readOnly": true, "type": "string", @@ -3000,6 +3200,49 @@ "description": "The resource ID." } } + }, + "OperationListResult": { + "description": "Result of the request to list SQL 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 SQL operations supported by the SQL resource provider." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + } + }, + "Operation": { + "description": "SQL 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 SQL Database.", + "type": "string" + }, + "resource": { + "description": "Resource on which the operation is performed: Server, Database, etc.", + "type": "string" + }, + "operation": { + "description": "Type of operation: get, read, delete, etc.", + "type": "string" + } + } + } + } } }, "parameters": {