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

iosxe.getSnmpServerUser

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 User configuration.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Iosxe = Pulumi.Iosxe;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Iosxe.GetSnmpServerUser.Invoke(new()
        {
            Grpname = "GROUP1",
            Username = "USER1",
        });
    
    });
    
    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.LookupSnmpServerUser(ctx, &iosxe.LookupSnmpServerUserArgs{
    			Grpname:  "GROUP1",
    			Username: "USER1",
    		}, 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.GetSnmpServerUserArgs;
    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.getSnmpServerUser(GetSnmpServerUserArgs.builder()
                .grpname("GROUP1")
                .username("USER1")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_iosxe as iosxe
    
    example = iosxe.get_snmp_server_user(grpname="GROUP1",
        username="USER1")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as iosxe from "@pulumi/iosxe";
    
    const example = iosxe.getSnmpServerUser({
        grpname: "GROUP1",
        username: "USER1",
    });
    
    variables:
      example:
        fn::invoke:
          Function: iosxe:getSnmpServerUser
          Arguments:
            grpname: GROUP1
            username: USER1
    

    Using getSnmpServerUser

    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 getSnmpServerUser(args: GetSnmpServerUserArgs, opts?: InvokeOptions): Promise<GetSnmpServerUserResult>
    function getSnmpServerUserOutput(args: GetSnmpServerUserOutputArgs, opts?: InvokeOptions): Output<GetSnmpServerUserResult>
    def get_snmp_server_user(device: Optional[str] = None,
                             grpname: Optional[str] = None,
                             username: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetSnmpServerUserResult
    def get_snmp_server_user_output(device: Optional[pulumi.Input[str]] = None,
                             grpname: Optional[pulumi.Input[str]] = None,
                             username: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetSnmpServerUserResult]
    func LookupSnmpServerUser(ctx *Context, args *LookupSnmpServerUserArgs, opts ...InvokeOption) (*LookupSnmpServerUserResult, error)
    func LookupSnmpServerUserOutput(ctx *Context, args *LookupSnmpServerUserOutputArgs, opts ...InvokeOption) LookupSnmpServerUserResultOutput

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

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

    The following arguments are supported:

    Grpname string
    Group to which the user belongs
    Username string
    Name of the user
    Device string
    A device name from the provider configuration.
    Grpname string
    Group to which the user belongs
    Username string
    Name of the user
    Device string
    A device name from the provider configuration.
    grpname String
    Group to which the user belongs
    username String
    Name of the user
    device String
    A device name from the provider configuration.
    grpname string
    Group to which the user belongs
    username string
    Name of the user
    device string
    A device name from the provider configuration.
    grpname str
    Group to which the user belongs
    username str
    Name of the user
    device str
    A device name from the provider configuration.
    grpname String
    Group to which the user belongs
    username String
    Name of the user
    device String
    A device name from the provider configuration.

    getSnmpServerUser Result

    The following output properties are available:

    Grpname string
    Group to which the user belongs
    Id string
    The path of the retrieved object.
    Username string
    Name of the user
    V3AuthAccessAclName string
    Access-list name
    V3AuthAccessIpv6Acl string
    Specify IPv6 Named Access-List
    V3AuthAccessStandardAcl int
    Standard IP Access-list allowing access with this community string
    V3AuthAlgorithm string
    Use HMAC SHA/MD5 algorithm for authentication
    V3AuthPassword string
    Authentication password for user
    V3AuthPrivAesAccessAclName string
    Access-list name
    V3AuthPrivAesAccessIpv6Acl string
    Specify IPv6 Named Access-List
    V3AuthPrivAesAccessStandardAcl int
    Standard IP Access-list allowing access with this community string
    V3AuthPrivAesAlgorithm string
    V3AuthPrivAesPassword string
    Authentication password for user
    V3AuthPrivDes3AccessAclName string
    Access-list name
    V3AuthPrivDes3AccessIpv6Acl string
    Specify IPv6 Named Access-List
    V3AuthPrivDes3AccessStandardAcl int
    Standard IP Access-list allowing access with this community string
    V3AuthPrivDes3Password string
    Authentication password for user
    V3AuthPrivDesAccessAclName string
    Access-list name
    V3AuthPrivDesAccessIpv6Acl string
    Specify IPv6 Named Access-List
    V3AuthPrivDesAccessStandardAcl int
    Standard IP Access-list allowing access with this community string
    V3AuthPrivDesPassword string
    Authentication password for user
    Device string
    A device name from the provider configuration.
    Grpname string
    Group to which the user belongs
    Id string
    The path of the retrieved object.
    Username string
    Name of the user
    V3AuthAccessAclName string
    Access-list name
    V3AuthAccessIpv6Acl string
    Specify IPv6 Named Access-List
    V3AuthAccessStandardAcl int
    Standard IP Access-list allowing access with this community string
    V3AuthAlgorithm string
    Use HMAC SHA/MD5 algorithm for authentication
    V3AuthPassword string
    Authentication password for user
    V3AuthPrivAesAccessAclName string
    Access-list name
    V3AuthPrivAesAccessIpv6Acl string
    Specify IPv6 Named Access-List
    V3AuthPrivAesAccessStandardAcl int
    Standard IP Access-list allowing access with this community string
    V3AuthPrivAesAlgorithm string
    V3AuthPrivAesPassword string
    Authentication password for user
    V3AuthPrivDes3AccessAclName string
    Access-list name
    V3AuthPrivDes3AccessIpv6Acl string
    Specify IPv6 Named Access-List
    V3AuthPrivDes3AccessStandardAcl int
    Standard IP Access-list allowing access with this community string
    V3AuthPrivDes3Password string
    Authentication password for user
    V3AuthPrivDesAccessAclName string
    Access-list name
    V3AuthPrivDesAccessIpv6Acl string
    Specify IPv6 Named Access-List
    V3AuthPrivDesAccessStandardAcl int
    Standard IP Access-list allowing access with this community string
    V3AuthPrivDesPassword string
    Authentication password for user
    Device string
    A device name from the provider configuration.
    grpname String
    Group to which the user belongs
    id String
    The path of the retrieved object.
    username String
    Name of the user
    v3AuthAccessAclName String
    Access-list name
    v3AuthAccessIpv6Acl String
    Specify IPv6 Named Access-List
    v3AuthAccessStandardAcl Integer
    Standard IP Access-list allowing access with this community string
    v3AuthAlgorithm String
    Use HMAC SHA/MD5 algorithm for authentication
    v3AuthPassword String
    Authentication password for user
    v3AuthPrivAesAccessAclName String
    Access-list name
    v3AuthPrivAesAccessIpv6Acl String
    Specify IPv6 Named Access-List
    v3AuthPrivAesAccessStandardAcl Integer
    Standard IP Access-list allowing access with this community string
    v3AuthPrivAesAlgorithm String
    v3AuthPrivAesPassword String
    Authentication password for user
    v3AuthPrivDes3AccessAclName String
    Access-list name
    v3AuthPrivDes3AccessIpv6Acl String
    Specify IPv6 Named Access-List
    v3AuthPrivDes3AccessStandardAcl Integer
    Standard IP Access-list allowing access with this community string
    v3AuthPrivDes3Password String
    Authentication password for user
    v3AuthPrivDesAccessAclName String
    Access-list name
    v3AuthPrivDesAccessIpv6Acl String
    Specify IPv6 Named Access-List
    v3AuthPrivDesAccessStandardAcl Integer
    Standard IP Access-list allowing access with this community string
    v3AuthPrivDesPassword String
    Authentication password for user
    device String
    A device name from the provider configuration.
    grpname string
    Group to which the user belongs
    id string
    The path of the retrieved object.
    username string
    Name of the user
    v3AuthAccessAclName string
    Access-list name
    v3AuthAccessIpv6Acl string
    Specify IPv6 Named Access-List
    v3AuthAccessStandardAcl number
    Standard IP Access-list allowing access with this community string
    v3AuthAlgorithm string
    Use HMAC SHA/MD5 algorithm for authentication
    v3AuthPassword string
    Authentication password for user
    v3AuthPrivAesAccessAclName string
    Access-list name
    v3AuthPrivAesAccessIpv6Acl string
    Specify IPv6 Named Access-List
    v3AuthPrivAesAccessStandardAcl number
    Standard IP Access-list allowing access with this community string
    v3AuthPrivAesAlgorithm string
    v3AuthPrivAesPassword string
    Authentication password for user
    v3AuthPrivDes3AccessAclName string
    Access-list name
    v3AuthPrivDes3AccessIpv6Acl string
    Specify IPv6 Named Access-List
    v3AuthPrivDes3AccessStandardAcl number
    Standard IP Access-list allowing access with this community string
    v3AuthPrivDes3Password string
    Authentication password for user
    v3AuthPrivDesAccessAclName string
    Access-list name
    v3AuthPrivDesAccessIpv6Acl string
    Specify IPv6 Named Access-List
    v3AuthPrivDesAccessStandardAcl number
    Standard IP Access-list allowing access with this community string
    v3AuthPrivDesPassword string
    Authentication password for user
    device string
    A device name from the provider configuration.
    grpname str
    Group to which the user belongs
    id str
    The path of the retrieved object.
    username str
    Name of the user
    v3_auth_access_acl_name str
    Access-list name
    v3_auth_access_ipv6_acl str
    Specify IPv6 Named Access-List
    v3_auth_access_standard_acl int
    Standard IP Access-list allowing access with this community string
    v3_auth_algorithm str
    Use HMAC SHA/MD5 algorithm for authentication
    v3_auth_password str
    Authentication password for user
    v3_auth_priv_aes_access_acl_name str
    Access-list name
    v3_auth_priv_aes_access_ipv6_acl str
    Specify IPv6 Named Access-List
    v3_auth_priv_aes_access_standard_acl int
    Standard IP Access-list allowing access with this community string
    v3_auth_priv_aes_algorithm str
    v3_auth_priv_aes_password str
    Authentication password for user
    v3_auth_priv_des3_access_acl_name str
    Access-list name
    v3_auth_priv_des3_access_ipv6_acl str
    Specify IPv6 Named Access-List
    v3_auth_priv_des3_access_standard_acl int
    Standard IP Access-list allowing access with this community string
    v3_auth_priv_des3_password str
    Authentication password for user
    v3_auth_priv_des_access_acl_name str
    Access-list name
    v3_auth_priv_des_access_ipv6_acl str
    Specify IPv6 Named Access-List
    v3_auth_priv_des_access_standard_acl int
    Standard IP Access-list allowing access with this community string
    v3_auth_priv_des_password str
    Authentication password for user
    device str
    A device name from the provider configuration.
    grpname String
    Group to which the user belongs
    id String
    The path of the retrieved object.
    username String
    Name of the user
    v3AuthAccessAclName String
    Access-list name
    v3AuthAccessIpv6Acl String
    Specify IPv6 Named Access-List
    v3AuthAccessStandardAcl Number
    Standard IP Access-list allowing access with this community string
    v3AuthAlgorithm String
    Use HMAC SHA/MD5 algorithm for authentication
    v3AuthPassword String
    Authentication password for user
    v3AuthPrivAesAccessAclName String
    Access-list name
    v3AuthPrivAesAccessIpv6Acl String
    Specify IPv6 Named Access-List
    v3AuthPrivAesAccessStandardAcl Number
    Standard IP Access-list allowing access with this community string
    v3AuthPrivAesAlgorithm String
    v3AuthPrivAesPassword String
    Authentication password for user
    v3AuthPrivDes3AccessAclName String
    Access-list name
    v3AuthPrivDes3AccessIpv6Acl String
    Specify IPv6 Named Access-List
    v3AuthPrivDes3AccessStandardAcl Number
    Standard IP Access-list allowing access with this community string
    v3AuthPrivDes3Password String
    Authentication password for user
    v3AuthPrivDesAccessAclName String
    Access-list name
    v3AuthPrivDesAccessIpv6Acl String
    Specify IPv6 Named Access-List
    v3AuthPrivDesAccessStandardAcl Number
    Standard IP Access-list allowing access with this community string
    v3AuthPrivDesPassword String
    Authentication password for user
    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