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

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",
    });

});
Copy
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
	})
}
Copy
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());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as iosxe from "@pulumi/iosxe";

const example = iosxe.getSnmpServerGroup({
    name: "GROUP1",
});
Copy
import pulumi
import pulumi_iosxe as iosxe

example = iosxe.get_snmp_server_group(name="GROUP1")
Copy
variables:
  example:
    fn::invoke:
      Function: iosxe:getSnmpServerGroup
      Arguments:
        name: GROUP1
Copy

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>
Copy
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]
Copy
func LookupSnmpServerGroup(ctx *Context, args *LookupSnmpServerGroupArgs, opts ...InvokeOption) (*LookupSnmpServerGroupResult, error)
func LookupSnmpServerGroupOutput(ctx *Context, args *LookupSnmpServerGroupOutputArgs, opts ...InvokeOption) LookupSnmpServerGroupResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetSnmpServerGroupResult> getSnmpServerGroup(GetSnmpServerGroupArgs args, InvokeOptions options)
public static Output<GetSnmpServerGroupResult> getSnmpServerGroup(GetSnmpServerGroupArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: iosxe:index/getSnmpServerGroup:getSnmpServerGroup
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
Device string
A device name from the provider configuration.
Name This property is required. string
Device string
A device name from the provider configuration.
name This property is required. String
device String
A device name from the provider configuration.
name This property is required. string
device string
A device name from the provider configuration.
name This property is required. str
device str
A device name from the provider configuration.
name This property is required. 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 This property is required. string
Access-list name
AccessIpv6Acl This property is required. string
Specify IPv6 Named Access-List
AccessStandardAcl This property is required. int
Standard IP Access-list allowing access with this community string
ContextNode This property is required. string
specify a context to associate these views for the group
MatchNode This property is required. string
context name match criteria
NotifyNode This property is required. string
specify a notify view for the group
ReadNode This property is required. string
specify a read view for the group
SecurityLevel This property is required. string
security level type
WriteNode This property is required. string
specify a write view for the group
AccessAclName This property is required. string
Access-list name
AccessIpv6Acl This property is required. string
Specify IPv6 Named Access-List
AccessStandardAcl This property is required. int
Standard IP Access-list allowing access with this community string
ContextNode This property is required. string
specify a context to associate these views for the group
MatchNode This property is required. string
context name match criteria
NotifyNode This property is required. string
specify a notify view for the group
ReadNode This property is required. string
specify a read view for the group
SecurityLevel This property is required. string
security level type
WriteNode This property is required. string
specify a write view for the group
accessAclName This property is required. String
Access-list name
accessIpv6Acl This property is required. String
Specify IPv6 Named Access-List
accessStandardAcl This property is required. Integer
Standard IP Access-list allowing access with this community string
contextNode This property is required. String
specify a context to associate these views for the group
matchNode This property is required. String
context name match criteria
notifyNode This property is required. String
specify a notify view for the group
readNode This property is required. String
specify a read view for the group
securityLevel This property is required. String
security level type
writeNode This property is required. String
specify a write view for the group
accessAclName This property is required. string
Access-list name
accessIpv6Acl This property is required. string
Specify IPv6 Named Access-List
accessStandardAcl This property is required. number
Standard IP Access-list allowing access with this community string
contextNode This property is required. string
specify a context to associate these views for the group
matchNode This property is required. string
context name match criteria
notifyNode This property is required. string
specify a notify view for the group
readNode This property is required. string
specify a read view for the group
securityLevel This property is required. string
security level type
writeNode This property is required. string
specify a write view for the group
access_acl_name This property is required. str
Access-list name
access_ipv6_acl This property is required. str
Specify IPv6 Named Access-List
access_standard_acl This property is required. int
Standard IP Access-list allowing access with this community string
context_node This property is required. str
specify a context to associate these views for the group
match_node This property is required. str
context name match criteria
notify_node This property is required. str
specify a notify view for the group
read_node This property is required. str
specify a read view for the group
security_level This property is required. str
security level type
write_node This property is required. str
specify a write view for the group
accessAclName This property is required. String
Access-list name
accessIpv6Acl This property is required. String
Specify IPv6 Named Access-List
accessStandardAcl This property is required. Number
Standard IP Access-list allowing access with this community string
contextNode This property is required. String
specify a context to associate these views for the group
matchNode This property is required. String
context name match criteria
notifyNode This property is required. String
specify a notify view for the group
readNode This property is required. String
specify a read view for the group
securityLevel This property is required. String
security level type
writeNode This property is required. 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.
Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs