1. Packages
  2. Cisco IOS XE Resource Provider
  3. API Docs
  4. getService
Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs

iosxe.getService

Explore with Pulumi AI

iosxe logo
Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs

    This data source can read the Service configuration.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Iosxe = Pulumi.Iosxe;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Iosxe.GetService.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.LookupService(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.GetServiceArgs;
    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.getService();
    
        }
    }
    
    import pulumi
    import pulumi_iosxe as iosxe
    
    example = iosxe.get_service()
    
    import * as pulumi from "@pulumi/pulumi";
    import * as iosxe from "@pulumi/iosxe";
    
    const example = iosxe.getService({});
    
    variables:
      example:
        fn::invoke:
          Function: iosxe:getService
          Arguments: {}
    

    Using getService

    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 getService(args: GetServiceArgs, opts?: InvokeOptions): Promise<GetServiceResult>
    function getServiceOutput(args: GetServiceOutputArgs, opts?: InvokeOptions): Output<GetServiceResult>
    def get_service(device: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetServiceResult
    def get_service_output(device: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetServiceResult]
    func LookupService(ctx *Context, args *LookupServiceArgs, opts ...InvokeOption) (*LookupServiceResult, error)
    func LookupServiceOutput(ctx *Context, args *LookupServiceOutputArgs, opts ...InvokeOption) LookupServiceResultOutput

    > Note: This function is named LookupService in the Go SDK.

    public static class GetService 
    {
        public static Task<GetServiceResult> InvokeAsync(GetServiceArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceResult> Invoke(GetServiceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetServiceResult> getService(GetServiceArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: iosxe:index/getService:getService
      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.

    getService Result

    The following output properties are available:

    CallHome bool
    Enable call-home service
    CompressConfig bool
    Compress the configuration file
    Dhcp bool
    Enable DHCP server and relay agent
    Id string
    The path of the retrieved object.
    Pad bool
    Enable PAD commands
    PasswordEncryption bool
    Encrypt system passwords
    PasswordRecovery bool
    Enable password recovery
    SequenceNumbers bool
    Stamp logger messages with a sequence number
    TcpKeepalivesIn bool
    Generate keepalives on idle incoming network connections
    TcpKeepalivesOut bool
    Generate keepalives on idle outgoing network connections
    Timestamps bool
    Timestamp debug/log messages
    TimestampsDebug bool
    Timestamp debug messages
    TimestampsDebugDatetime bool
    Timestamp with date and time
    TimestampsDebugDatetimeLocaltime bool
    Use local time zone for timestamps
    TimestampsDebugDatetimeMsec bool
    Include milliseconds in timestamp
    TimestampsDebugDatetimeShowTimezone bool
    Add time zone information to timestamp
    TimestampsDebugDatetimeYear bool
    Include year in timestamp
    TimestampsDebugUptime bool
    Timestamp with system uptime
    TimestampsLog bool
    Timestamp log messages
    TimestampsLogDatetime bool
    Timestamp with date and time
    TimestampsLogDatetimeLocaltime bool
    Use local time zone for timestamps
    TimestampsLogDatetimeMsec bool
    Include milliseconds in timestamp
    TimestampsLogDatetimeShowTimezone bool
    Add time zone information to timestamp
    TimestampsLogDatetimeYear bool
    Include year in timestamp
    TimestampsLogUptime bool
    Timestamp with system uptime
    Device string
    A device name from the provider configuration.
    CallHome bool
    Enable call-home service
    CompressConfig bool
    Compress the configuration file
    Dhcp bool
    Enable DHCP server and relay agent
    Id string
    The path of the retrieved object.
    Pad bool
    Enable PAD commands
    PasswordEncryption bool
    Encrypt system passwords
    PasswordRecovery bool
    Enable password recovery
    SequenceNumbers bool
    Stamp logger messages with a sequence number
    TcpKeepalivesIn bool
    Generate keepalives on idle incoming network connections
    TcpKeepalivesOut bool
    Generate keepalives on idle outgoing network connections
    Timestamps bool
    Timestamp debug/log messages
    TimestampsDebug bool
    Timestamp debug messages
    TimestampsDebugDatetime bool
    Timestamp with date and time
    TimestampsDebugDatetimeLocaltime bool
    Use local time zone for timestamps
    TimestampsDebugDatetimeMsec bool
    Include milliseconds in timestamp
    TimestampsDebugDatetimeShowTimezone bool
    Add time zone information to timestamp
    TimestampsDebugDatetimeYear bool
    Include year in timestamp
    TimestampsDebugUptime bool
    Timestamp with system uptime
    TimestampsLog bool
    Timestamp log messages
    TimestampsLogDatetime bool
    Timestamp with date and time
    TimestampsLogDatetimeLocaltime bool
    Use local time zone for timestamps
    TimestampsLogDatetimeMsec bool
    Include milliseconds in timestamp
    TimestampsLogDatetimeShowTimezone bool
    Add time zone information to timestamp
    TimestampsLogDatetimeYear bool
    Include year in timestamp
    TimestampsLogUptime bool
    Timestamp with system uptime
    Device string
    A device name from the provider configuration.
    callHome Boolean
    Enable call-home service
    compressConfig Boolean
    Compress the configuration file
    dhcp Boolean
    Enable DHCP server and relay agent
    id String
    The path of the retrieved object.
    pad Boolean
    Enable PAD commands
    passwordEncryption Boolean
    Encrypt system passwords
    passwordRecovery Boolean
    Enable password recovery
    sequenceNumbers Boolean
    Stamp logger messages with a sequence number
    tcpKeepalivesIn Boolean
    Generate keepalives on idle incoming network connections
    tcpKeepalivesOut Boolean
    Generate keepalives on idle outgoing network connections
    timestamps Boolean
    Timestamp debug/log messages
    timestampsDebug Boolean
    Timestamp debug messages
    timestampsDebugDatetime Boolean
    Timestamp with date and time
    timestampsDebugDatetimeLocaltime Boolean
    Use local time zone for timestamps
    timestampsDebugDatetimeMsec Boolean
    Include milliseconds in timestamp
    timestampsDebugDatetimeShowTimezone Boolean
    Add time zone information to timestamp
    timestampsDebugDatetimeYear Boolean
    Include year in timestamp
    timestampsDebugUptime Boolean
    Timestamp with system uptime
    timestampsLog Boolean
    Timestamp log messages
    timestampsLogDatetime Boolean
    Timestamp with date and time
    timestampsLogDatetimeLocaltime Boolean
    Use local time zone for timestamps
    timestampsLogDatetimeMsec Boolean
    Include milliseconds in timestamp
    timestampsLogDatetimeShowTimezone Boolean
    Add time zone information to timestamp
    timestampsLogDatetimeYear Boolean
    Include year in timestamp
    timestampsLogUptime Boolean
    Timestamp with system uptime
    device String
    A device name from the provider configuration.
    callHome boolean
    Enable call-home service
    compressConfig boolean
    Compress the configuration file
    dhcp boolean
    Enable DHCP server and relay agent
    id string
    The path of the retrieved object.
    pad boolean
    Enable PAD commands
    passwordEncryption boolean
    Encrypt system passwords
    passwordRecovery boolean
    Enable password recovery
    sequenceNumbers boolean
    Stamp logger messages with a sequence number
    tcpKeepalivesIn boolean
    Generate keepalives on idle incoming network connections
    tcpKeepalivesOut boolean
    Generate keepalives on idle outgoing network connections
    timestamps boolean
    Timestamp debug/log messages
    timestampsDebug boolean
    Timestamp debug messages
    timestampsDebugDatetime boolean
    Timestamp with date and time
    timestampsDebugDatetimeLocaltime boolean
    Use local time zone for timestamps
    timestampsDebugDatetimeMsec boolean
    Include milliseconds in timestamp
    timestampsDebugDatetimeShowTimezone boolean
    Add time zone information to timestamp
    timestampsDebugDatetimeYear boolean
    Include year in timestamp
    timestampsDebugUptime boolean
    Timestamp with system uptime
    timestampsLog boolean
    Timestamp log messages
    timestampsLogDatetime boolean
    Timestamp with date and time
    timestampsLogDatetimeLocaltime boolean
    Use local time zone for timestamps
    timestampsLogDatetimeMsec boolean
    Include milliseconds in timestamp
    timestampsLogDatetimeShowTimezone boolean
    Add time zone information to timestamp
    timestampsLogDatetimeYear boolean
    Include year in timestamp
    timestampsLogUptime boolean
    Timestamp with system uptime
    device string
    A device name from the provider configuration.
    call_home bool
    Enable call-home service
    compress_config bool
    Compress the configuration file
    dhcp bool
    Enable DHCP server and relay agent
    id str
    The path of the retrieved object.
    pad bool
    Enable PAD commands
    password_encryption bool
    Encrypt system passwords
    password_recovery bool
    Enable password recovery
    sequence_numbers bool
    Stamp logger messages with a sequence number
    tcp_keepalives_in bool
    Generate keepalives on idle incoming network connections
    tcp_keepalives_out bool
    Generate keepalives on idle outgoing network connections
    timestamps bool
    Timestamp debug/log messages
    timestamps_debug bool
    Timestamp debug messages
    timestamps_debug_datetime bool
    Timestamp with date and time
    timestamps_debug_datetime_localtime bool
    Use local time zone for timestamps
    timestamps_debug_datetime_msec bool
    Include milliseconds in timestamp
    timestamps_debug_datetime_show_timezone bool
    Add time zone information to timestamp
    timestamps_debug_datetime_year bool
    Include year in timestamp
    timestamps_debug_uptime bool
    Timestamp with system uptime
    timestamps_log bool
    Timestamp log messages
    timestamps_log_datetime bool
    Timestamp with date and time
    timestamps_log_datetime_localtime bool
    Use local time zone for timestamps
    timestamps_log_datetime_msec bool
    Include milliseconds in timestamp
    timestamps_log_datetime_show_timezone bool
    Add time zone information to timestamp
    timestamps_log_datetime_year bool
    Include year in timestamp
    timestamps_log_uptime bool
    Timestamp with system uptime
    device str
    A device name from the provider configuration.
    callHome Boolean
    Enable call-home service
    compressConfig Boolean
    Compress the configuration file
    dhcp Boolean
    Enable DHCP server and relay agent
    id String
    The path of the retrieved object.
    pad Boolean
    Enable PAD commands
    passwordEncryption Boolean
    Encrypt system passwords
    passwordRecovery Boolean
    Enable password recovery
    sequenceNumbers Boolean
    Stamp logger messages with a sequence number
    tcpKeepalivesIn Boolean
    Generate keepalives on idle incoming network connections
    tcpKeepalivesOut Boolean
    Generate keepalives on idle outgoing network connections
    timestamps Boolean
    Timestamp debug/log messages
    timestampsDebug Boolean
    Timestamp debug messages
    timestampsDebugDatetime Boolean
    Timestamp with date and time
    timestampsDebugDatetimeLocaltime Boolean
    Use local time zone for timestamps
    timestampsDebugDatetimeMsec Boolean
    Include milliseconds in timestamp
    timestampsDebugDatetimeShowTimezone Boolean
    Add time zone information to timestamp
    timestampsDebugDatetimeYear Boolean
    Include year in timestamp
    timestampsDebugUptime Boolean
    Timestamp with system uptime
    timestampsLog Boolean
    Timestamp log messages
    timestampsLogDatetime Boolean
    Timestamp with date and time
    timestampsLogDatetimeLocaltime Boolean
    Use local time zone for timestamps
    timestampsLogDatetimeMsec Boolean
    Include milliseconds in timestamp
    timestampsLogDatetimeShowTimezone Boolean
    Add time zone information to timestamp
    timestampsLogDatetimeYear Boolean
    Include year in timestamp
    timestampsLogUptime Boolean
    Timestamp with system uptime
    device String
    A device name from the provider configuration.

    Package Details

    Repository
    iosxe lbrlabs/pulumi-iosxe
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the iosxe Terraform Provider.
    iosxe logo
    Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs