// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.security.generated;

/** Samples for ServerVulnerabilityAssessment ListByExtendedResource. */
public final class ServerVulnerabilityAssessmentListByExtendedResourceSamples {
    /*
     * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ServerVulnerabilityAssessments/ListByExtendedResourceServerVulnerabilityAssessments_example.json
     */
    /**
     * Sample code: Get a list of server vulnerability assessments on a resource. Though this API returns a list,
     * Currently Microsoft.Security only supports a single default type of server vulnerability assessment.
     *
     * @param manager Entry point to SecurityManager.
     */
    public static void
        getAListOfServerVulnerabilityAssessmentsOnAResourceThoughThisAPIReturnsAListCurrentlyMicrosoftSecurityOnlySupportsASingleDefaultTypeOfServerVulnerabilityAssessment(
            com.azure.resourcemanager.security.SecurityManager manager) {
        manager
            .serverVulnerabilityAssessments()
            .listByExtendedResourceWithResponse(
                "rg1", "Microsoft.Compute", "virtualMachines", "vm1", com.azure.core.util.Context.NONE);
    }
}
