Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs
iosxe.getDhcp
Explore with Pulumi AI
This data source can read the DHCP configuration.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Iosxe = Pulumi.Iosxe;
return await Deployment.RunAsync(() =>
{
var example = Iosxe.GetDhcp.Invoke();
});
package main
import (
"github.com/lbrlabs/pulumi-iosxe/sdk/go/iosxe"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := iosxe.LookupDhcp(ctx, nil, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.iosxe.IosxeFunctions;
import com.pulumi.iosxe.inputs.GetDhcpArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = IosxeFunctions.getDhcp();
}
}
import pulumi
import pulumi_iosxe as iosxe
example = iosxe.get_dhcp()
import * as pulumi from "@pulumi/pulumi";
import * as iosxe from "@pulumi/iosxe";
const example = iosxe.getDhcp({});
variables:
example:
fn::invoke:
Function: iosxe:getDhcp
Arguments: {}
Using getDhcp
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDhcp(args: GetDhcpArgs, opts?: InvokeOptions): Promise<GetDhcpResult>
function getDhcpOutput(args: GetDhcpOutputArgs, opts?: InvokeOptions): Output<GetDhcpResult>
def get_dhcp(device: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDhcpResult
def get_dhcp_output(device: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDhcpResult]
func LookupDhcp(ctx *Context, args *LookupDhcpArgs, opts ...InvokeOption) (*LookupDhcpResult, error)
func LookupDhcpOutput(ctx *Context, args *LookupDhcpOutputArgs, opts ...InvokeOption) LookupDhcpResultOutput
> Note: This function is named LookupDhcp
in the Go SDK.
public static class GetDhcp
{
public static Task<GetDhcpResult> InvokeAsync(GetDhcpArgs args, InvokeOptions? opts = null)
public static Output<GetDhcpResult> Invoke(GetDhcpInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDhcpResult> getDhcp(GetDhcpArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: iosxe:index/getDhcp:getDhcp
arguments:
# arguments dictionary
The following arguments are supported:
- Device string
- A device name from the provider configuration.
- Device string
- A device name from the provider configuration.
- device String
- A device name from the provider configuration.
- device string
- A device name from the provider configuration.
- device str
- A device name from the provider configuration.
- device String
- A device name from the provider configuration.
getDhcp Result
The following output properties are available:
- Compatibility
Suboption stringLink Selection - Compatibility
Suboption stringServer Override - Id string
- The path of the retrieved object.
- Relay
Information boolOption Default - Default option, no vpn
- Relay
Information boolOption Vpn - Insert VPN sub-options and change the giaddr to the outgoing interface
- Relay
Information boolTrust All - Received DHCP packets may contain relay info option with zero giaddr
- Snooping bool
- DHCP Snooping
- Snooping
Information boolOption Format Remote Id Hostname - Use configured hostname for remote id
- Snooping
Vlans List<Lbrlabs.Pulumi Package. Iosxe. Outputs. Get Dhcp Snooping Vlan> - DHCP Snooping vlan
- Device string
- A device name from the provider configuration.
- Compatibility
Suboption stringLink Selection - Compatibility
Suboption stringServer Override - Id string
- The path of the retrieved object.
- Relay
Information boolOption Default - Default option, no vpn
- Relay
Information boolOption Vpn - Insert VPN sub-options and change the giaddr to the outgoing interface
- Relay
Information boolTrust All - Received DHCP packets may contain relay info option with zero giaddr
- Snooping bool
- DHCP Snooping
- Snooping
Information boolOption Format Remote Id Hostname - Use configured hostname for remote id
- Snooping
Vlans []GetDhcp Snooping Vlan - DHCP Snooping vlan
- Device string
- A device name from the provider configuration.
- compatibility
Suboption StringLink Selection - compatibility
Suboption StringServer Override - id String
- The path of the retrieved object.
- relay
Information BooleanOption Default - Default option, no vpn
- relay
Information BooleanOption Vpn - Insert VPN sub-options and change the giaddr to the outgoing interface
- relay
Information BooleanTrust All - Received DHCP packets may contain relay info option with zero giaddr
- snooping Boolean
- DHCP Snooping
- snooping
Information BooleanOption Format Remote Id Hostname - Use configured hostname for remote id
- snooping
Vlans List<GetDhcp Snooping Vlan> - DHCP Snooping vlan
- device String
- A device name from the provider configuration.
- compatibility
Suboption stringLink Selection - compatibility
Suboption stringServer Override - id string
- The path of the retrieved object.
- relay
Information booleanOption Default - Default option, no vpn
- relay
Information booleanOption Vpn - Insert VPN sub-options and change the giaddr to the outgoing interface
- relay
Information booleanTrust All - Received DHCP packets may contain relay info option with zero giaddr
- snooping boolean
- DHCP Snooping
- snooping
Information booleanOption Format Remote Id Hostname - Use configured hostname for remote id
- snooping
Vlans GetDhcp Snooping Vlan[] - DHCP Snooping vlan
- device string
- A device name from the provider configuration.
- compatibility_
suboption_ strlink_ selection - compatibility_
suboption_ strserver_ override - id str
- The path of the retrieved object.
- relay_
information_ booloption_ default - Default option, no vpn
- relay_
information_ booloption_ vpn - Insert VPN sub-options and change the giaddr to the outgoing interface
- relay_
information_ booltrust_ all - Received DHCP packets may contain relay info option with zero giaddr
- snooping bool
- DHCP Snooping
- snooping_
information_ booloption_ format_ remote_ id_ hostname - Use configured hostname for remote id
- snooping_
vlans Sequence[GetDhcp Snooping Vlan] - DHCP Snooping vlan
- device str
- A device name from the provider configuration.
- compatibility
Suboption StringLink Selection - compatibility
Suboption StringServer Override - id String
- The path of the retrieved object.
- relay
Information BooleanOption Default - Default option, no vpn
- relay
Information BooleanOption Vpn - Insert VPN sub-options and change the giaddr to the outgoing interface
- relay
Information BooleanTrust All - Received DHCP packets may contain relay info option with zero giaddr
- snooping Boolean
- DHCP Snooping
- snooping
Information BooleanOption Format Remote Id Hostname - Use configured hostname for remote id
- snooping
Vlans List<Property Map> - DHCP Snooping vlan
- device String
- A device name from the provider configuration.
Supporting Types
GetDhcpSnoopingVlan
- Vlan
Id string - DHCP Snooping vlan first number or vlan range,example: 1,3-5,7,9-11
- Vlan
Id string - DHCP Snooping vlan first number or vlan range,example: 1,3-5,7,9-11
- vlan
Id String - DHCP Snooping vlan first number or vlan range,example: 1,3-5,7,9-11
- vlan
Id string - DHCP Snooping vlan first number or vlan range,example: 1,3-5,7,9-11
- vlan_
id str - DHCP Snooping vlan first number or vlan range,example: 1,3-5,7,9-11
- vlan
Id String - DHCP Snooping vlan first number or vlan range,example: 1,3-5,7,9-11
Package Details
- Repository
- iosxe lbrlabs/pulumi-iosxe
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
iosxe
Terraform Provider.