iosxe.SnmpServerGroup
Explore with Pulumi AI
This resource can manage the SNMP Server Group configuration.
Example Usage
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.iosxe.SnmpServerGroup;
import com.pulumi.iosxe.SnmpServerGroupArgs;
import com.pulumi.iosxe.inputs.SnmpServerGroupV3SecurityArgs;
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) {
var example = new SnmpServerGroup("example", SnmpServerGroupArgs.builder()
.v3Securities(SnmpServerGroupV3SecurityArgs.builder()
.access_acl_name("ACL1")
.access_ipv6_acl("V6ACL1")
.context_node("CON1")
.match_node("exact")
.notify_node("VIEW3")
.read_node("VIEW1")
.security_level("priv")
.write_node("VIEW2")
.build())
.build());
}
}
Coming soon!
Coming soon!
resources:
example:
type: iosxe:SnmpServerGroup
properties:
v3Securities:
- access_acl_name: ACL1
access_ipv6_acl: V6ACL1
context_node: CON1
match_node: exact
notify_node: VIEW3
read_node: VIEW1
security_level: priv
write_node: VIEW2
Create SnmpServerGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SnmpServerGroup(name: string, args?: SnmpServerGroupArgs, opts?: CustomResourceOptions);
@overload
def SnmpServerGroup(resource_name: str,
args: Optional[SnmpServerGroupArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def SnmpServerGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
device: Optional[str] = None,
name: Optional[str] = None,
v3_securities: Optional[Sequence[SnmpServerGroupV3SecurityArgs]] = None)
func NewSnmpServerGroup(ctx *Context, name string, args *SnmpServerGroupArgs, opts ...ResourceOption) (*SnmpServerGroup, error)
public SnmpServerGroup(string name, SnmpServerGroupArgs? args = null, CustomResourceOptions? opts = null)
public SnmpServerGroup(String name, SnmpServerGroupArgs args)
public SnmpServerGroup(String name, SnmpServerGroupArgs args, CustomResourceOptions options)
type: iosxe:SnmpServerGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SnmpServerGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SnmpServerGroupArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SnmpServerGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SnmpServerGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SnmpServerGroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var snmpServerGroupResource = new Iosxe.SnmpServerGroup("snmpServerGroupResource", new()
{
Device = "string",
Name = "string",
V3Securities = new[]
{
new Iosxe.Inputs.SnmpServerGroupV3SecurityArgs
{
SecurityLevel = "string",
AccessAclName = "string",
AccessIpv6Acl = "string",
AccessStandardAcl = 0,
ContextNode = "string",
MatchNode = "string",
NotifyNode = "string",
ReadNode = "string",
WriteNode = "string",
},
},
});
example, err := iosxe.NewSnmpServerGroup(ctx, "snmpServerGroupResource", &iosxe.SnmpServerGroupArgs{
Device: pulumi.String("string"),
Name: pulumi.String("string"),
V3Securities: iosxe.SnmpServerGroupV3SecurityArray{
&iosxe.SnmpServerGroupV3SecurityArgs{
SecurityLevel: pulumi.String("string"),
AccessAclName: pulumi.String("string"),
AccessIpv6Acl: pulumi.String("string"),
AccessStandardAcl: pulumi.Int(0),
ContextNode: pulumi.String("string"),
MatchNode: pulumi.String("string"),
NotifyNode: pulumi.String("string"),
ReadNode: pulumi.String("string"),
WriteNode: pulumi.String("string"),
},
},
})
var snmpServerGroupResource = new SnmpServerGroup("snmpServerGroupResource", SnmpServerGroupArgs.builder()
.device("string")
.name("string")
.v3Securities(SnmpServerGroupV3SecurityArgs.builder()
.securityLevel("string")
.accessAclName("string")
.accessIpv6Acl("string")
.accessStandardAcl(0)
.contextNode("string")
.matchNode("string")
.notifyNode("string")
.readNode("string")
.writeNode("string")
.build())
.build());
snmp_server_group_resource = iosxe.SnmpServerGroup("snmpServerGroupResource",
device="string",
name="string",
v3_securities=[{
"security_level": "string",
"access_acl_name": "string",
"access_ipv6_acl": "string",
"access_standard_acl": 0,
"context_node": "string",
"match_node": "string",
"notify_node": "string",
"read_node": "string",
"write_node": "string",
}])
const snmpServerGroupResource = new iosxe.SnmpServerGroup("snmpServerGroupResource", {
device: "string",
name: "string",
v3Securities: [{
securityLevel: "string",
accessAclName: "string",
accessIpv6Acl: "string",
accessStandardAcl: 0,
contextNode: "string",
matchNode: "string",
notifyNode: "string",
readNode: "string",
writeNode: "string",
}],
});
type: iosxe:SnmpServerGroup
properties:
device: string
name: string
v3Securities:
- accessAclName: string
accessIpv6Acl: string
accessStandardAcl: 0
contextNode: string
matchNode: string
notifyNode: string
readNode: string
securityLevel: string
writeNode: string
SnmpServerGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SnmpServerGroup resource accepts the following input properties:
- Device string
- A device name from the provider configuration.
- Name string
- V3Securities
List<Lbrlabs.
Pulumi Package. Iosxe. Inputs. Snmp Server Group V3Security> - group using security Level
- Device string
- A device name from the provider configuration.
- Name string
- V3Securities
[]Snmp
Server Group V3Security Args - group using security Level
- device String
- A device name from the provider configuration.
- name String
- v3Securities
List<Snmp
Server Group V3Security> - group using security Level
- device string
- A device name from the provider configuration.
- name string
- v3Securities
Snmp
Server Group V3Security[] - group using security Level
- device str
- A device name from the provider configuration.
- name str
- v3_
securities Sequence[SnmpServer Group V3Security Args] - group using security Level
- device String
- A device name from the provider configuration.
- name String
- v3Securities List<Property Map>
- group using security Level
Outputs
All input properties are implicitly available as output properties. Additionally, the SnmpServerGroup resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing SnmpServerGroup Resource
Get an existing SnmpServerGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SnmpServerGroupState, opts?: CustomResourceOptions): SnmpServerGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
device: Optional[str] = None,
name: Optional[str] = None,
v3_securities: Optional[Sequence[SnmpServerGroupV3SecurityArgs]] = None) -> SnmpServerGroup
func GetSnmpServerGroup(ctx *Context, name string, id IDInput, state *SnmpServerGroupState, opts ...ResourceOption) (*SnmpServerGroup, error)
public static SnmpServerGroup Get(string name, Input<string> id, SnmpServerGroupState? state, CustomResourceOptions? opts = null)
public static SnmpServerGroup get(String name, Output<String> id, SnmpServerGroupState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Device string
- A device name from the provider configuration.
- Name string
- V3Securities
List<Lbrlabs.
Pulumi Package. Iosxe. Inputs. Snmp Server Group V3Security> - group using security Level
- Device string
- A device name from the provider configuration.
- Name string
- V3Securities
[]Snmp
Server Group V3Security Args - group using security Level
- device String
- A device name from the provider configuration.
- name String
- v3Securities
List<Snmp
Server Group V3Security> - group using security Level
- device string
- A device name from the provider configuration.
- name string
- v3Securities
Snmp
Server Group V3Security[] - group using security Level
- device str
- A device name from the provider configuration.
- name str
- v3_
securities Sequence[SnmpServer Group V3Security Args] - group using security Level
- device String
- A device name from the provider configuration.
- name String
- v3Securities List<Property Map>
- group using security Level
Supporting Types
SnmpServerGroupV3Security, SnmpServerGroupV3SecurityArgs
- Security
Level string - Access
Acl stringName - Access
Ipv6Acl string - Access
Standard intAcl - Context
Node string - Match
Node string - Notify
Node string - Read
Node string - Write
Node string
- Security
Level string - Access
Acl stringName - Access
Ipv6Acl string - Access
Standard intAcl - Context
Node string - Match
Node string - Notify
Node string - Read
Node string - Write
Node string
- security
Level String - access
Acl StringName - access
Ipv6Acl String - access
Standard IntegerAcl - context
Node String - match
Node String - notify
Node String - read
Node String - write
Node String
- security
Level string - access
Acl stringName - access
Ipv6Acl string - access
Standard numberAcl - context
Node string - match
Node string - notify
Node string - read
Node string - write
Node string
- security_
level str - access_
acl_ strname - access_
ipv6_ stracl - access_
standard_ intacl - context_
node str - match_
node str - notify_
node str - read_
node str - write_
node str
- security
Level String - access
Acl StringName - access
Ipv6Acl String - access
Standard NumberAcl - context
Node String - match
Node String - notify
Node String - read
Node String - write
Node String
Import
$ pulumi import iosxe:index/snmpServerGroup:SnmpServerGroup example "Cisco-IOS-XE-native:native/snmp-server/Cisco-IOS-XE-snmp:group=GROUP1"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- iosxe lbrlabs/pulumi-iosxe
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
iosxe
Terraform Provider.