How to use @azure/arm-network - 7 common examples

To help you get started, we’ve selected a few @azure/arm-network examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github HomecareHomebase / azure-bake / ingredient / ingredient-network-interface / src / functions.ts View on Github external
public async get_dns_settings(nicName: string, rg: string | null = null) { 
        
        let util = IngredientManager.getIngredientFunction("coreutils", this.context);
        let resource_group = rg || await util.resource_group();

        const client = new NetworkManagementClient(this.context.AuthToken, this.context.Environment.authentication.subscriptionId);                
        let response = await client.networkInterfaces.get( resource_group, nicName)                      
        return response.dnsSettings;
    }
github HomecareHomebase / azure-bake / ingredient / ingredient-network-interface / src / functions.ts View on Github external
public async get(nicName: string, rg: string | null = null) { 
        
        let util = IngredientManager.getIngredientFunction("coreutils", this.context);
        let resource_group = rg || await util.resource_group();

        const client = new NetworkManagementClient(this.context.AuthToken, this.context.Environment.authentication.subscriptionId);                
        let response = await client.networkInterfaces.get( resource_group, nicName)                              
        return response;
    }
    public async get_mac_address(nicName: string, rg: string | null = null) {
github HomecareHomebase / azure-bake / ingredient / ingredient-network-interface / src / functions.ts View on Github external
public async get_primary(nicName: string, rg: string | null = null) { 
        
        let util = IngredientManager.getIngredientFunction("coreutils", this.context);
        let resource_group = rg || await util.resource_group();

        const client = new NetworkManagementClient(this.context.AuthToken, this.context.Environment.authentication.subscriptionId);                
        let response = await client.networkInterfaces.get( resource_group, nicName)                      
        return response.primary;
    }
github HomecareHomebase / azure-bake / ingredient / ingredient-network-interface / src / functions.ts View on Github external
public async get_mac_address(nicName: string, rg: string | null = null) { 
        
        let util = IngredientManager.getIngredientFunction("coreutils", this.context);
        let resource_group = rg || await util.resource_group();

        const client = new NetworkManagementClient(this.context.AuthToken, this.context.Environment.authentication.subscriptionId);                
        let response = await client.networkInterfaces.get( resource_group, nicName)                      
        return response.macAddress;
    }   
    public async get_ip_configurations(nicName: string, rg: string | null = null) {
github HomecareHomebase / azure-bake / ingredient / ingredient-network-interface / src / functions.ts View on Github external
public async get_virtual_machine(nicName: string, rg: string | null = null) { 
        
        let util = IngredientManager.getIngredientFunction("coreutils", this.context);
        let resource_group = rg || await util.resource_group();

        const client = new NetworkManagementClient(this.context.AuthToken, this.context.Environment.authentication.subscriptionId);                
        let response = await client.networkInterfaces.get( resource_group, nicName)                      
        return response.virtualMachine;
    }
github HomecareHomebase / azure-bake / ingredient / ingredient-network-interface / src / functions.ts View on Github external
public async get_ip_configurations(nicName: string, rg: string | null = null) { 
        
        let util = IngredientManager.getIngredientFunction("coreutils", this.context);
        let resource_group = rg || await util.resource_group();

        const client = new NetworkManagementClient(this.context.AuthToken, this.context.Environment.authentication.subscriptionId);                
        let response = await client.networkInterfaces.get( resource_group, nicName)                      
        return response.ipConfigurations;
    }
github HomecareHomebase / azure-bake / ingredient / ingredient-network-interface / src / functions.ts View on Github external
public async get_enable_ip_forwarding(nicName: string, rg: string | null = null) { 
        
        let util = IngredientManager.getIngredientFunction("coreutils", this.context);
        let resource_group = rg || await util.resource_group();

        const client = new NetworkManagementClient(this.context.AuthToken, this.context.Environment.authentication.subscriptionId);                
        let response = await client.networkInterfaces.get( resource_group, nicName)                      
        return response.enableIPForwarding;
    } 
}

@azure/arm-network

A generated SDK for NetworkManagementClient.

MIT
Latest version published 2 months ago

Package Health Score

95 / 100
Full package analysis

Popular @azure/arm-network functions