3.0.0 • Published 5 years ago

@datafire/azure_sql_databasevulnerabilityassessments v3.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

@datafire/azure_sql_databasevulnerabilityassessments

Client library for SqlManagementClient

Installation and Usage

npm install --save @datafire/azure_sql_databasevulnerabilityassessments
let azure_sql_databasevulnerabilityassessments = require('@datafire/azure_sql_databasevulnerabilityassessments').create({
  access_token: "",
  refresh_token: "",
  client_id: "",
  client_secret: "",
  redirect_uri: ""
});

.then(data => {
  console.log(data);
});

Description

The Azure SQL Database management API provides a RESTful set of web APIs that interact with Azure SQL Database services to manage your databases. The API enables users to create, retrieve, update, and delete databases, servers, and other entities.

Actions

DatabaseVulnerabilityAssessments_ListByDatabase

Lists the vulnerability assessment policies associated with a database.

azure_sql_databasevulnerabilityassessments.DatabaseVulnerabilityAssessments_ListByDatabase({
  "resourceGroupName": "",
  "serverName": "",
  "databaseName": "",
  "subscriptionId": "",
  "api-version": ""
}, context)

Input

  • 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 for which the vulnerability assessment policies are defined.
    • subscriptionId required string: The subscription ID that identifies an Azure subscription.
    • api-version required string: The API version to use for the request.

Output

DatabaseVulnerabilityAssessments_Delete

Removes the database's vulnerability assessment.

azure_sql_databasevulnerabilityassessments.DatabaseVulnerabilityAssessments_Delete({
  "resourceGroupName": "",
  "serverName": "",
  "databaseName": "",
  "vulnerabilityAssessmentName": "",
  "subscriptionId": "",
  "api-version": ""
}, context)

Input

  • 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 for which the vulnerability assessment is defined.
    • vulnerabilityAssessmentName required string (values: default): The name of the vulnerability assessment.
    • subscriptionId required string: The subscription ID that identifies an Azure subscription.
    • api-version required string: The API version to use for the request.

Output

Output schema unknown

DatabaseVulnerabilityAssessments_Get

Gets the database's vulnerability assessment.

azure_sql_databasevulnerabilityassessments.DatabaseVulnerabilityAssessments_Get({
  "resourceGroupName": "",
  "serverName": "",
  "databaseName": "",
  "vulnerabilityAssessmentName": "",
  "subscriptionId": "",
  "api-version": ""
}, context)

Input

  • 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 for which the vulnerability assessment is defined.
    • vulnerabilityAssessmentName required string (values: default): The name of the vulnerability assessment.
    • subscriptionId required string: The subscription ID that identifies an Azure subscription.
    • api-version required string: The API version to use for the request.

Output

DatabaseVulnerabilityAssessments_CreateOrUpdate

Creates or updates the database's vulnerability assessment.

azure_sql_databasevulnerabilityassessments.DatabaseVulnerabilityAssessments_CreateOrUpdate({
  "resourceGroupName": "",
  "serverName": "",
  "databaseName": "",
  "vulnerabilityAssessmentName": "",
  "parameters": {},
  "subscriptionId": "",
  "api-version": ""
}, context)

Input

  • 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 for which the vulnerability assessment is defined.
    • vulnerabilityAssessmentName required string (values: default): The name of the vulnerability assessment.
    • parameters required DatabaseVulnerabilityAssessment
    • subscriptionId required string: The subscription ID that identifies an Azure subscription.
    • api-version required string: The API version to use for the request.

Output

Definitions

DatabaseVulnerabilityAssessment

  • DatabaseVulnerabilityAssessment object: A database vulnerability assessment.

DatabaseVulnerabilityAssessmentListResult

  • DatabaseVulnerabilityAssessmentListResult object: A list of the database's vulnerability assessments.

DatabaseVulnerabilityAssessmentProperties

  • DatabaseVulnerabilityAssessmentProperties object: Properties of a database Vulnerability Assessment.
    • recurringScans VulnerabilityAssessmentRecurringScansProperties
    • storageAccountAccessKey string: Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required.
    • storageContainerPath string: A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/). It is required if server level vulnerability assessment policy doesn't set
    • storageContainerSasKey string: A shared access signature (SAS Key) that has read and write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required.

VulnerabilityAssessmentRecurringScansProperties

  • VulnerabilityAssessmentRecurringScansProperties object: Properties of a Vulnerability Assessment recurring scans.
    • emailSubscriptionAdmins boolean: Specifies that the schedule scan notification will be is sent to the subscription administrators.
    • emails array: Specifies an array of e-mail addresses to which the scan notification is sent.
      • items string
    • isEnabled boolean: Recurring scans state.