@azure/arm-security
Version:
A generated SDK for SecurityCenter.
73 lines (70 loc) • 2.77 kB
text/typescript
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
SecurityAssessmentResponse,
AssessmentsListOptionalParams,
AssessmentsGetOptionalParams,
AssessmentsGetResponse,
SecurityAssessment,
AssessmentsCreateOrUpdateOptionalParams,
AssessmentsCreateOrUpdateResponse,
AssessmentsDeleteOptionalParams
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a Assessments. */
export interface Assessments {
/**
* Get security assessments on all your scanned resources inside a scope
* @param scope Scope of the query, can be subscription
* (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group
* (/providers/Microsoft.Management/managementGroups/mgName).
* @param options The options parameters.
*/
list(
scope: string,
options?: AssessmentsListOptionalParams
): PagedAsyncIterableIterator<SecurityAssessmentResponse>;
/**
* Get a security assessment on your scanned resource
* @param resourceId The identifier of the resource.
* @param assessmentName The Assessment Key - Unique key for the assessment type
* @param options The options parameters.
*/
get(
resourceId: string,
assessmentName: string,
options?: AssessmentsGetOptionalParams
): Promise<AssessmentsGetResponse>;
/**
* Create a security assessment on your resource. An assessment metadata that describes this assessment
* must be predefined with the same name before inserting the assessment result
* @param resourceId The identifier of the resource.
* @param assessmentName The Assessment Key - Unique key for the assessment type
* @param assessment Calculated assessment on a pre-defined assessment metadata
* @param options The options parameters.
*/
createOrUpdate(
resourceId: string,
assessmentName: string,
assessment: SecurityAssessment,
options?: AssessmentsCreateOrUpdateOptionalParams
): Promise<AssessmentsCreateOrUpdateResponse>;
/**
* Delete a security assessment on your resource. An assessment metadata that describes this assessment
* must be predefined with the same name before inserting the assessment result
* @param resourceId The identifier of the resource.
* @param assessmentName The Assessment Key - Unique key for the assessment type
* @param options The options parameters.
*/
delete(
resourceId: string,
assessmentName: string,
options?: AssessmentsDeleteOptionalParams
): Promise<void>;
}