Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs
iosxe.getSnmpServerUser
Start a Neo task
Explain and create an iosxe.getSnmpServerUser resource
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 * as pulumi from "@pulumi/pulumi";
import * as iosxe from "@pulumi/iosxe";
const example = iosxe.getSnmpServerUser({
grpname: "GROUP1",
username: "USER1",
});
import pulumi
import pulumi_iosxe as iosxe
example = iosxe.get_snmp_server_user(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)
public static Output<GetSnmpServerUserResult> getSnmpServerUser(GetSnmpServerUserArgs args, InvokeOptions options)
fn::invoke:
function: iosxe:index/getSnmpServerUser:getSnmpServerUser
arguments:
# arguments dictionaryThe following arguments are supported:
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
- V3Auth
Access stringAcl Name - Access-list name
- V3Auth
Access stringIpv6Acl - Specify IPv6 Named Access-List
- V3Auth
Access intStandard Acl - Standard IP Access-list allowing access with this community string
- V3Auth
Algorithm string - Use HMAC SHA/MD5 algorithm for authentication
- V3Auth
Password string - Authentication password for user
- V3Auth
Priv stringAes Access Acl Name - Access-list name
- V3Auth
Priv stringAes Access Ipv6Acl - Specify IPv6 Named Access-List
- V3Auth
Priv intAes Access Standard Acl - Standard IP Access-list allowing access with this community string
- V3Auth
Priv stringAes Algorithm - V3Auth
Priv stringAes Password - Authentication password for user
- V3Auth
Priv stringDes3Access Acl Name - Access-list name
- V3Auth
Priv stringDes3Access Ipv6Acl - Specify IPv6 Named Access-List
- V3Auth
Priv intDes3Access Standard Acl - Standard IP Access-list allowing access with this community string
- V3Auth
Priv stringDes3Password - Authentication password for user
- V3Auth
Priv stringDes Access Acl Name - Access-list name
- V3Auth
Priv stringDes Access Ipv6Acl - Specify IPv6 Named Access-List
- V3Auth
Priv intDes Access Standard Acl - Standard IP Access-list allowing access with this community string
- V3Auth
Priv stringDes Password - 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
- V3Auth
Access stringAcl Name - Access-list name
- V3Auth
Access stringIpv6Acl - Specify IPv6 Named Access-List
- V3Auth
Access intStandard Acl - Standard IP Access-list allowing access with this community string
- V3Auth
Algorithm string - Use HMAC SHA/MD5 algorithm for authentication
- V3Auth
Password string - Authentication password for user
- V3Auth
Priv stringAes Access Acl Name - Access-list name
- V3Auth
Priv stringAes Access Ipv6Acl - Specify IPv6 Named Access-List
- V3Auth
Priv intAes Access Standard Acl - Standard IP Access-list allowing access with this community string
- V3Auth
Priv stringAes Algorithm - V3Auth
Priv stringAes Password - Authentication password for user
- V3Auth
Priv stringDes3Access Acl Name - Access-list name
- V3Auth
Priv stringDes3Access Ipv6Acl - Specify IPv6 Named Access-List
- V3Auth
Priv intDes3Access Standard Acl - Standard IP Access-list allowing access with this community string
- V3Auth
Priv stringDes3Password - Authentication password for user
- V3Auth
Priv stringDes Access Acl Name - Access-list name
- V3Auth
Priv stringDes Access Ipv6Acl - Specify IPv6 Named Access-List
- V3Auth
Priv intDes Access Standard Acl - Standard IP Access-list allowing access with this community string
- V3Auth
Priv stringDes Password - 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
- v3Auth
Access StringAcl Name - Access-list name
- v3Auth
Access StringIpv6Acl - Specify IPv6 Named Access-List
- v3Auth
Access IntegerStandard Acl - Standard IP Access-list allowing access with this community string
- v3Auth
Algorithm String - Use HMAC SHA/MD5 algorithm for authentication
- v3Auth
Password String - Authentication password for user
- v3Auth
Priv StringAes Access Acl Name - Access-list name
- v3Auth
Priv StringAes Access Ipv6Acl - Specify IPv6 Named Access-List
- v3Auth
Priv IntegerAes Access Standard Acl - Standard IP Access-list allowing access with this community string
- v3Auth
Priv StringAes Algorithm - v3Auth
Priv StringAes Password - Authentication password for user
- v3Auth
Priv StringDes3Access Acl Name - Access-list name
- v3Auth
Priv StringDes3Access Ipv6Acl - Specify IPv6 Named Access-List
- v3Auth
Priv IntegerDes3Access Standard Acl - Standard IP Access-list allowing access with this community string
- v3Auth
Priv StringDes3Password - Authentication password for user
- v3Auth
Priv StringDes Access Acl Name - Access-list name
- v3Auth
Priv StringDes Access Ipv6Acl - Specify IPv6 Named Access-List
- v3Auth
Priv IntegerDes Access Standard Acl - Standard IP Access-list allowing access with this community string
- v3Auth
Priv StringDes Password - 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
- v3Auth
Access stringAcl Name - Access-list name
- v3Auth
Access stringIpv6Acl - Specify IPv6 Named Access-List
- v3Auth
Access numberStandard Acl - Standard IP Access-list allowing access with this community string
- v3Auth
Algorithm string - Use HMAC SHA/MD5 algorithm for authentication
- v3Auth
Password string - Authentication password for user
- v3Auth
Priv stringAes Access Acl Name - Access-list name
- v3Auth
Priv stringAes Access Ipv6Acl - Specify IPv6 Named Access-List
- v3Auth
Priv numberAes Access Standard Acl - Standard IP Access-list allowing access with this community string
- v3Auth
Priv stringAes Algorithm - v3Auth
Priv stringAes Password - Authentication password for user
- v3Auth
Priv stringDes3Access Acl Name - Access-list name
- v3Auth
Priv stringDes3Access Ipv6Acl - Specify IPv6 Named Access-List
- v3Auth
Priv numberDes3Access Standard Acl - Standard IP Access-list allowing access with this community string
- v3Auth
Priv stringDes3Password - Authentication password for user
- v3Auth
Priv stringDes Access Acl Name - Access-list name
- v3Auth
Priv stringDes Access Ipv6Acl - Specify IPv6 Named Access-List
- v3Auth
Priv numberDes Access Standard Acl - Standard IP Access-list allowing access with this community string
- v3Auth
Priv stringDes Password - 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_ straccess_ acl_ name - Access-list name
- v3_
auth_ straccess_ ipv6_ acl - Specify IPv6 Named Access-List
- v3_
auth_ intaccess_ standard_ acl - Standard IP Access-list allowing access with this community string
- v3_
auth_ stralgorithm - Use HMAC SHA/MD5 algorithm for authentication
- v3_
auth_ strpassword - Authentication password for user
- v3_
auth_ strpriv_ aes_ access_ acl_ name - Access-list name
- v3_
auth_ strpriv_ aes_ access_ ipv6_ acl - Specify IPv6 Named Access-List
- v3_
auth_ intpriv_ aes_ access_ standard_ acl - Standard IP Access-list allowing access with this community string
- v3_
auth_ strpriv_ aes_ algorithm - v3_
auth_ strpriv_ aes_ password - Authentication password for user
- v3_
auth_ strpriv_ des3_ access_ acl_ name - Access-list name
- v3_
auth_ strpriv_ des3_ access_ ipv6_ acl - Specify IPv6 Named Access-List
- v3_
auth_ intpriv_ des3_ access_ standard_ acl - Standard IP Access-list allowing access with this community string
- v3_
auth_ strpriv_ des3_ password - Authentication password for user
- v3_
auth_ strpriv_ des_ access_ acl_ name - Access-list name
- v3_
auth_ strpriv_ des_ access_ ipv6_ acl - Specify IPv6 Named Access-List
- v3_
auth_ intpriv_ des_ access_ standard_ acl - Standard IP Access-list allowing access with this community string
- v3_
auth_ strpriv_ des_ password - 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
- v3Auth
Access StringAcl Name - Access-list name
- v3Auth
Access StringIpv6Acl - Specify IPv6 Named Access-List
- v3Auth
Access NumberStandard Acl - Standard IP Access-list allowing access with this community string
- v3Auth
Algorithm String - Use HMAC SHA/MD5 algorithm for authentication
- v3Auth
Password String - Authentication password for user
- v3Auth
Priv StringAes Access Acl Name - Access-list name
- v3Auth
Priv StringAes Access Ipv6Acl - Specify IPv6 Named Access-List
- v3Auth
Priv NumberAes Access Standard Acl - Standard IP Access-list allowing access with this community string
- v3Auth
Priv StringAes Algorithm - v3Auth
Priv StringAes Password - Authentication password for user
- v3Auth
Priv StringDes3Access Acl Name - Access-list name
- v3Auth
Priv StringDes3Access Ipv6Acl - Specify IPv6 Named Access-List
- v3Auth
Priv NumberDes3Access Standard Acl - Standard IP Access-list allowing access with this community string
- v3Auth
Priv StringDes3Password - Authentication password for user
- v3Auth
Priv StringDes Access Acl Name - Access-list name
- v3Auth
Priv StringDes Access Ipv6Acl - Specify IPv6 Named Access-List
- v3Auth
Priv NumberDes Access Standard Acl - Standard IP Access-list allowing access with this community string
- v3Auth
Priv StringDes Password - 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
iosxeTerraform Provider.
