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

iosxe.getSnmpServerGroup

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 SNMP Server Group configuration.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Iosxe = Pulumi.Iosxe;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Iosxe.GetSnmpServerGroup.Invoke(new()
        {
            Name = "GROUP1",
        });
    
    });
    
    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.LookupSnmpServerGroup(ctx, &iosxe.LookupSnmpServerGroupArgs{
    			Name: "GROUP1",
    		}, 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.GetSnmpServerGroupArgs;
    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.getSnmpServerGroup(GetSnmpServerGroupArgs.builder()
                .name("GROUP1")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_iosxe as iosxe
    
    example = iosxe.get_snmp_server_group(name="GROUP1")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as iosxe from "@pulumi/iosxe";
    
    const example = iosxe.getSnmpServerGroup({
        name: "GROUP1",
    });
    
    variables:
      example:
        fn::invoke:
          Function: iosxe:getSnmpServerGroup
          Arguments:
            name: GROUP1
    

    Using getSnmpServerGroup

    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 getSnmpServerGroup(args: GetSnmpServerGroupArgs, opts?: InvokeOptions): Promise<GetSnmpServerGroupResult>
    function getSnmpServerGroupOutput(args: GetSnmpServerGroupOutputArgs, opts?: InvokeOptions): Output<GetSnmpServerGroupResult>
    def get_snmp_server_group(device: Optional[str] = None,
                              name: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetSnmpServerGroupResult
    def get_snmp_server_group_output(device: Optional[pulumi.Input[str]] = None,
                              name: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetSnmpServerGroupResult]
    func LookupSnmpServerGroup(ctx *Context, args *LookupSnmpServerGroupArgs, opts ...InvokeOption) (*LookupSnmpServerGroupResult, error)
    func LookupSnmpServerGroupOutput(ctx *Context, args *LookupSnmpServerGroupOutputArgs, opts ...InvokeOption) LookupSnmpServerGroupResultOutput

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

    public static class GetSnmpServerGroup 
    {
        public static Task<GetSnmpServerGroupResult> InvokeAsync(GetSnmpServerGroupArgs args, InvokeOptions? opts = null)
        public static Output<GetSnmpServerGroupResult> Invoke(GetSnmpServerGroupInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSnmpServerGroupResult> getSnmpServerGroup(GetSnmpServerGroupArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: iosxe:index/getSnmpServerGroup:getSnmpServerGroup
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Device string
    A device name from the provider configuration.
    Name string
    Device string
    A device name from the provider configuration.
    name String
    device String
    A device name from the provider configuration.
    name string
    device string
    A device name from the provider configuration.
    name str
    device str
    A device name from the provider configuration.
    name String
    device String
    A device name from the provider configuration.

    getSnmpServerGroup Result

    The following output properties are available:

    Id string
    The path of the retrieved object.
    Name string
    V3Securities List<Lbrlabs.PulumiPackage.Iosxe.Outputs.GetSnmpServerGroupV3Security>
    group using security Level
    Device string
    A device name from the provider configuration.
    Id string
    The path of the retrieved object.
    Name string
    V3Securities []GetSnmpServerGroupV3Security
    group using security Level
    Device string
    A device name from the provider configuration.
    id String
    The path of the retrieved object.
    name String
    v3Securities List<GetSnmpServerGroupV3Security>
    group using security Level
    device String
    A device name from the provider configuration.
    id string
    The path of the retrieved object.
    name string
    v3Securities GetSnmpServerGroupV3Security[]
    group using security Level
    device string
    A device name from the provider configuration.
    id str
    The path of the retrieved object.
    name str
    v3_securities Sequence[GetSnmpServerGroupV3Security]
    group using security Level
    device str
    A device name from the provider configuration.
    id String
    The path of the retrieved object.
    name String
    v3Securities List<Property Map>
    group using security Level
    device String
    A device name from the provider configuration.

    Supporting Types

    GetSnmpServerGroupV3Security

    AccessAclName string
    Access-list name
    AccessIpv6Acl string
    Specify IPv6 Named Access-List
    AccessStandardAcl int
    Standard IP Access-list allowing access with this community string
    ContextNode string
    specify a context to associate these views for the group
    MatchNode string
    context name match criteria
    NotifyNode string
    specify a notify view for the group
    ReadNode string
    specify a read view for the group
    SecurityLevel string
    security level type
    WriteNode string
    specify a write view for the group
    AccessAclName string
    Access-list name
    AccessIpv6Acl string
    Specify IPv6 Named Access-List
    AccessStandardAcl int
    Standard IP Access-list allowing access with this community string
    ContextNode string
    specify a context to associate these views for the group
    MatchNode string
    context name match criteria
    NotifyNode string
    specify a notify view for the group
    ReadNode string
    specify a read view for the group
    SecurityLevel string
    security level type
    WriteNode string
    specify a write view for the group
    accessAclName String
    Access-list name
    accessIpv6Acl String
    Specify IPv6 Named Access-List
    accessStandardAcl Integer
    Standard IP Access-list allowing access with this community string
    contextNode String
    specify a context to associate these views for the group
    matchNode String
    context name match criteria
    notifyNode String
    specify a notify view for the group
    readNode String
    specify a read view for the group
    securityLevel String
    security level type
    writeNode String
    specify a write view for the group
    accessAclName string
    Access-list name
    accessIpv6Acl string
    Specify IPv6 Named Access-List
    accessStandardAcl number
    Standard IP Access-list allowing access with this community string
    contextNode string
    specify a context to associate these views for the group
    matchNode string
    context name match criteria
    notifyNode string
    specify a notify view for the group
    readNode string
    specify a read view for the group
    securityLevel string
    security level type
    writeNode string
    specify a write view for the group
    access_acl_name str
    Access-list name
    access_ipv6_acl str
    Specify IPv6 Named Access-List
    access_standard_acl int
    Standard IP Access-list allowing access with this community string
    context_node str
    specify a context to associate these views for the group
    match_node str
    context name match criteria
    notify_node str
    specify a notify view for the group
    read_node str
    specify a read view for the group
    security_level str
    security level type
    write_node str
    specify a write view for the group
    accessAclName String
    Access-list name
    accessIpv6Acl String
    Specify IPv6 Named Access-List
    accessStandardAcl Number
    Standard IP Access-list allowing access with this community string
    contextNode String
    specify a context to associate these views for the group
    matchNode String
    context name match criteria
    notifyNode String
    specify a notify view for the group
    readNode String
    specify a read view for the group
    securityLevel String
    security level type
    writeNode String
    specify a write view for the group

    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