1. Packages
  2. F5 BIG-IP
  3. API Docs
  4. sys
  5. Snmp
f5 BIG-IP v3.16.0 published on Monday, Feb 19, 2024 by Pulumi

f5bigip.sys.Snmp

Explore with Pulumi AI

f5bigip logo
f5 BIG-IP v3.16.0 published on Monday, Feb 19, 2024 by Pulumi

    f5bigip.sys.Snmp provides details bout how to enable “ilx”, “asm” “apm” resource on BIG-IP

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using F5BigIP = Pulumi.F5BigIP;
    
    return await Deployment.RunAsync(() => 
    {
        var snmp = new F5BigIP.Sys.Snmp("snmp", new()
        {
            Allowedaddresses = new[]
            {
                "202.10.10.2",
            },
            SysContact = " NetOPsAdmin s.shitole@f5.com",
            SysLocation = "SeattleHQ",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-f5bigip/sdk/v3/go/f5bigip/sys"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := sys.NewSnmp(ctx, "snmp", &sys.SnmpArgs{
    			Allowedaddresses: pulumi.StringArray{
    				pulumi.String("202.10.10.2"),
    			},
    			SysContact:  pulumi.String(" NetOPsAdmin s.shitole@f5.com"),
    			SysLocation: pulumi.String("SeattleHQ"),
    		})
    		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.f5bigip.sys.Snmp;
    import com.pulumi.f5bigip.sys.SnmpArgs;
    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 snmp = new Snmp("snmp", SnmpArgs.builder()        
                .allowedaddresses("202.10.10.2")
                .sysContact(" NetOPsAdmin s.shitole@f5.com")
                .sysLocation("SeattleHQ")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_f5bigip as f5bigip
    
    snmp = f5bigip.sys.Snmp("snmp",
        allowedaddresses=["202.10.10.2"],
        sys_contact=" NetOPsAdmin s.shitole@f5.com",
        sys_location="SeattleHQ")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as f5bigip from "@pulumi/f5bigip";
    
    const snmp = new f5bigip.sys.Snmp("snmp", {
        allowedaddresses: ["202.10.10.2"],
        sysContact: " NetOPsAdmin s.shitole@f5.com",
        sysLocation: "SeattleHQ",
    });
    
    resources:
      snmp:
        type: f5bigip:sys:Snmp
        properties:
          allowedaddresses:
            - 202.10.10.2
          sysContact: ' NetOPsAdmin s.shitole@f5.com'
          sysLocation: SeattleHQ
    

    Create Snmp Resource

    new Snmp(name: string, args?: SnmpArgs, opts?: CustomResourceOptions);
    @overload
    def Snmp(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             allowedaddresses: Optional[Sequence[str]] = None,
             sys_contact: Optional[str] = None,
             sys_location: Optional[str] = None)
    @overload
    def Snmp(resource_name: str,
             args: Optional[SnmpArgs] = None,
             opts: Optional[ResourceOptions] = None)
    func NewSnmp(ctx *Context, name string, args *SnmpArgs, opts ...ResourceOption) (*Snmp, error)
    public Snmp(string name, SnmpArgs? args = null, CustomResourceOptions? opts = null)
    public Snmp(String name, SnmpArgs args)
    public Snmp(String name, SnmpArgs args, CustomResourceOptions options)
    
    type: f5bigip:sys:Snmp
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args SnmpArgs
    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 SnmpArgs
    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 SnmpArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SnmpArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SnmpArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Snmp Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Snmp resource accepts the following input properties:

    Allowedaddresses List<string>
    Configures hosts or networks from which snmpd can accept traffic. Entries go directly into hosts.allow.
    SysContact string
    Specifies the contact information for the system administrator.
    SysLocation string
    Describes the system's physical location.
    Allowedaddresses []string
    Configures hosts or networks from which snmpd can accept traffic. Entries go directly into hosts.allow.
    SysContact string
    Specifies the contact information for the system administrator.
    SysLocation string
    Describes the system's physical location.
    allowedaddresses List<String>
    Configures hosts or networks from which snmpd can accept traffic. Entries go directly into hosts.allow.
    sysContact String
    Specifies the contact information for the system administrator.
    sysLocation String
    Describes the system's physical location.
    allowedaddresses string[]
    Configures hosts or networks from which snmpd can accept traffic. Entries go directly into hosts.allow.
    sysContact string
    Specifies the contact information for the system administrator.
    sysLocation string
    Describes the system's physical location.
    allowedaddresses Sequence[str]
    Configures hosts or networks from which snmpd can accept traffic. Entries go directly into hosts.allow.
    sys_contact str
    Specifies the contact information for the system administrator.
    sys_location str
    Describes the system's physical location.
    allowedaddresses List<String>
    Configures hosts or networks from which snmpd can accept traffic. Entries go directly into hosts.allow.
    sysContact String
    Specifies the contact information for the system administrator.
    sysLocation String
    Describes the system's physical location.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Snmp 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 Snmp Resource

    Get an existing Snmp 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?: SnmpState, opts?: CustomResourceOptions): Snmp
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            allowedaddresses: Optional[Sequence[str]] = None,
            sys_contact: Optional[str] = None,
            sys_location: Optional[str] = None) -> Snmp
    func GetSnmp(ctx *Context, name string, id IDInput, state *SnmpState, opts ...ResourceOption) (*Snmp, error)
    public static Snmp Get(string name, Input<string> id, SnmpState? state, CustomResourceOptions? opts = null)
    public static Snmp get(String name, Output<String> id, SnmpState 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.
    The following state arguments are supported:
    Allowedaddresses List<string>
    Configures hosts or networks from which snmpd can accept traffic. Entries go directly into hosts.allow.
    SysContact string
    Specifies the contact information for the system administrator.
    SysLocation string
    Describes the system's physical location.
    Allowedaddresses []string
    Configures hosts or networks from which snmpd can accept traffic. Entries go directly into hosts.allow.
    SysContact string
    Specifies the contact information for the system administrator.
    SysLocation string
    Describes the system's physical location.
    allowedaddresses List<String>
    Configures hosts or networks from which snmpd can accept traffic. Entries go directly into hosts.allow.
    sysContact String
    Specifies the contact information for the system administrator.
    sysLocation String
    Describes the system's physical location.
    allowedaddresses string[]
    Configures hosts or networks from which snmpd can accept traffic. Entries go directly into hosts.allow.
    sysContact string
    Specifies the contact information for the system administrator.
    sysLocation string
    Describes the system's physical location.
    allowedaddresses Sequence[str]
    Configures hosts or networks from which snmpd can accept traffic. Entries go directly into hosts.allow.
    sys_contact str
    Specifies the contact information for the system administrator.
    sys_location str
    Describes the system's physical location.
    allowedaddresses List<String>
    Configures hosts or networks from which snmpd can accept traffic. Entries go directly into hosts.allow.
    sysContact String
    Specifies the contact information for the system administrator.
    sysLocation String
    Describes the system's physical location.

    Package Details

    Repository
    f5 BIG-IP pulumi/pulumi-f5bigip
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the bigip Terraform Provider.
    f5bigip logo
    f5 BIG-IP v3.16.0 published on Monday, Feb 19, 2024 by Pulumi