Client library for SqlManagementClient
npm install --save @datafire/azure_sql_databaseschema
let azure_sql_databaseschema = require('@datafire/azure_sql_databaseschema').create({
access_token: "",
refresh_token: "",
client_id: "",
client_secret: "",
redirect_uri: ""
});
.then(data => {
console.log(data);
});
The Azure SQL Database management API provides a RESTful set of web APIs that interact with Azure SQL Database services to manage your databases. The API enables users to create, retrieve, update, and delete databases, servers, and other entities.
List database schemas
azure_sql_databaseschema.DatabaseSchemas_ListByDatabase({
"resourceGroupName": "",
"serverName": "",
"databaseName": "",
"subscriptionId": "",
"api-version": ""
}, context)
- input
object
- resourceGroupName required
string
: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. - serverName required
string
: The name of the server. - databaseName required
string
: The name of the database. - $filter
string
: An OData filter expression that filters elements in the collection. - subscriptionId required
string
: The subscription ID that identifies an Azure subscription. - api-version required
string
: The API version to use for the request.
- resourceGroupName required
- output DatabaseSchemaListResult
Get database schema
azure_sql_databaseschema.DatabaseSchemas_Get({
"resourceGroupName": "",
"serverName": "",
"databaseName": "",
"schemaName": "",
"subscriptionId": "",
"api-version": ""
}, context)
- input
object
- resourceGroupName required
string
: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. - serverName required
string
: The name of the server. - databaseName required
string
: The name of the database. - schemaName required
string
: The name of the schema. - subscriptionId required
string
: The subscription ID that identifies an Azure subscription. - api-version required
string
: The API version to use for the request.
- resourceGroupName required
- output DatabaseSchema
List database tables
azure_sql_databaseschema.DatabaseTables_ListBySchema({
"resourceGroupName": "",
"serverName": "",
"databaseName": "",
"schemaName": "",
"subscriptionId": "",
"api-version": ""
}, context)
- input
object
- resourceGroupName required
string
: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. - serverName required
string
: The name of the server. - databaseName required
string
: The name of the database. - schemaName required
string
: The name of the schema. - $filter
string
: An OData filter expression that filters elements in the collection. - subscriptionId required
string
: The subscription ID that identifies an Azure subscription. - api-version required
string
: The API version to use for the request.
- resourceGroupName required
- output DatabaseTableListResult
Get database table
azure_sql_databaseschema.DatabaseTables_Get({
"resourceGroupName": "",
"serverName": "",
"databaseName": "",
"schemaName": "",
"tableName": "",
"subscriptionId": "",
"api-version": ""
}, context)
- input
object
- resourceGroupName required
string
: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. - serverName required
string
: The name of the server. - databaseName required
string
: The name of the database. - schemaName required
string
: The name of the schema. - tableName required
string
: The name of the table. - subscriptionId required
string
: The subscription ID that identifies an Azure subscription. - api-version required
string
: The API version to use for the request.
- resourceGroupName required
- output DatabaseTable
List database columns
azure_sql_databaseschema.DatabaseColumns_ListByTable({
"resourceGroupName": "",
"serverName": "",
"databaseName": "",
"schemaName": "",
"tableName": "",
"subscriptionId": "",
"api-version": ""
}, context)
- input
object
- resourceGroupName required
string
: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. - serverName required
string
: The name of the server. - databaseName required
string
: The name of the database. - schemaName required
string
: The name of the schema. - tableName required
string
: The name of the table. - $filter
string
: An OData filter expression that filters elements in the collection. - subscriptionId required
string
: The subscription ID that identifies an Azure subscription. - api-version required
string
: The API version to use for the request.
- resourceGroupName required
- output DatabaseColumnListResult
Get database column
azure_sql_databaseschema.DatabaseColumns_Get({
"resourceGroupName": "",
"serverName": "",
"databaseName": "",
"schemaName": "",
"tableName": "",
"columnName": "",
"subscriptionId": "",
"api-version": ""
}, context)
- input
object
- resourceGroupName required
string
: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. - serverName required
string
: The name of the server. - databaseName required
string
: The name of the database. - schemaName required
string
: The name of the schema. - tableName required
string
: The name of the table. - columnName required
string
: The name of the column. - subscriptionId required
string
: The subscription ID that identifies an Azure subscription. - api-version required
string
: The API version to use for the request.
- resourceGroupName required
- output DatabaseColumn
- DatabaseColumn
object
: A database column resource.- properties DatabaseColumnProperties
- id
string
: Resource ID. - name
string
: Resource name. - type
string
: Resource type.
- DatabaseColumnListResult
object
: A list of database columns.- nextLink
string
: Link to retrieve next page of results. - value
array
: Array of results.- items DatabaseColumn
- nextLink
- DatabaseColumnProperties
object
: Database column properties.- columnType
string
(values: image, text, uniqueidentifier, date, time, datetime2, datetimeoffset, tinyint, smallint, int, smalldatetime, real, money, datetime, float, sql_variant, ntext, bit, decimal, numeric, smallmoney, bigint, hierarchyid, geometry, geography, varbinary, varchar, binary, char, timestamp, nvarchar, nchar, xml, sysname): The column data type.
- columnType
- DatabaseSchema
object
: A database schema resource.- id
string
: Resource ID. - name
string
: Resource name. - type
string
: Resource type.
- id
- DatabaseSchemaListResult
object
: A list of database schemas.- nextLink
string
: Link to retrieve next page of results. - value
array
: Array of results.- items DatabaseSchema
- nextLink
- DatabaseTable
object
: A database table resource.- id
string
: Resource ID. - name
string
: Resource name. - type
string
: Resource type.
- id
- DatabaseTableListResult
object
: A list of database tables.- nextLink
string
: Link to retrieve next page of results. - value
array
: Array of results.- items DatabaseTable
- nextLink
- ProxyResource
object
: ARM proxy resource.- id
string
: Resource ID. - name
string
: Resource name. - type
string
: Resource type.
- id
- Resource
object
: ARM resource.- id
string
: Resource ID. - name
string
: Resource name. - type
string
: Resource type.
- id