Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs
iosxe.getSnmpServerGroup
Start a Neo task
Explain and create an iosxe.getSnmpServerGroup resource
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 * as pulumi from "@pulumi/pulumi";
import * as iosxe from "@pulumi/iosxe";
const example = iosxe.getSnmpServerGroup({
name: "GROUP1",
});
import pulumi
import pulumi_iosxe as iosxe
example = iosxe.get_snmp_server_group(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)
public static Output<GetSnmpServerGroupResult> getSnmpServerGroup(GetSnmpServerGroupArgs args, InvokeOptions options)
fn::invoke:
function: iosxe:index/getSnmpServerGroup:getSnmpServerGroup
arguments:
# arguments dictionaryThe following arguments are supported:
getSnmpServerGroup Result
The following output properties are available:
- Id string
- The path of the retrieved object.
- Name string
- V3Securities
List<Lbrlabs.
Pulumi Package. Iosxe. Outputs. Get Snmp Server Group V3Security> - group using security Level
- Device string
- A device name from the provider configuration.
- Id string
- The path of the retrieved object.
- Name string
- V3Securities
[]Get
Snmp Server Group V3Security - 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<Get
Snmp Server Group V3Security> - group using security Level
- device String
- A device name from the provider configuration.
- id string
- The path of the retrieved object.
- name string
- v3Securities
Get
Snmp Server Group V3Security[] - 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[GetSnmp Server Group V3Security] - 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
- Access
Acl stringName - Access-list name
- Access
Ipv6Acl string - Specify IPv6 Named Access-List
- Access
Standard intAcl - Standard IP Access-list allowing access with this community string
- Context
Node string - specify a context to associate these views for the group
- Match
Node string - context name match criteria
- Notify
Node string - specify a notify view for the group
- Read
Node string - specify a read view for the group
- Security
Level string - security level type
- Write
Node string - specify a write view for the group
- Access
Acl stringName - Access-list name
- Access
Ipv6Acl string - Specify IPv6 Named Access-List
- Access
Standard intAcl - Standard IP Access-list allowing access with this community string
- Context
Node string - specify a context to associate these views for the group
- Match
Node string - context name match criteria
- Notify
Node string - specify a notify view for the group
- Read
Node string - specify a read view for the group
- Security
Level string - security level type
- Write
Node string - specify a write view for the group
- access
Acl StringName - Access-list name
- access
Ipv6Acl String - Specify IPv6 Named Access-List
- access
Standard IntegerAcl - Standard IP Access-list allowing access with this community string
- context
Node String - specify a context to associate these views for the group
- match
Node String - context name match criteria
- notify
Node String - specify a notify view for the group
- read
Node String - specify a read view for the group
- security
Level String - security level type
- write
Node String - specify a write view for the group
- access
Acl stringName - Access-list name
- access
Ipv6Acl string - Specify IPv6 Named Access-List
- access
Standard numberAcl - Standard IP Access-list allowing access with this community string
- context
Node string - specify a context to associate these views for the group
- match
Node string - context name match criteria
- notify
Node string - specify a notify view for the group
- read
Node string - specify a read view for the group
- security
Level string - security level type
- write
Node string - specify a write view for the group
- access_
acl_ strname - Access-list name
- access_
ipv6_ stracl - Specify IPv6 Named Access-List
- access_
standard_ intacl - 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
- access
Acl StringName - Access-list name
- access
Ipv6Acl String - Specify IPv6 Named Access-List
- access
Standard NumberAcl - Standard IP Access-list allowing access with this community string
- context
Node String - specify a context to associate these views for the group
- match
Node String - context name match criteria
- notify
Node String - specify a notify view for the group
- read
Node String - specify a read view for the group
- security
Level String - security level type
- write
Node 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
iosxeTerraform Provider.
