1. Packages
  2. Bigip Provider
  3. API Docs
  4. sys
  5. Snmp
f5 BIG-IP v3.17.6 published on Monday, Oct 28, 2024 by Pulumi

f5bigip.sys.Snmp

Explore with Pulumi AI

f5bigip logo
f5 BIG-IP v3.17.6 published on Monday, Oct 28, 2024 by Pulumi

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as f5bigip from "@pulumi/f5bigip";
    
    const snmp = new f5bigip.sys.Snmp("snmp", {
        sysContact: " NetOPsAdmin s.shitole@f5.com",
        sysLocation: "SeattleHQ",
        allowedaddresses: ["202.10.10.2"],
    });
    
    import pulumi
    import pulumi_f5bigip as f5bigip
    
    snmp = f5bigip.sys.Snmp("snmp",
        sys_contact=" NetOPsAdmin s.shitole@f5.com",
        sys_location="SeattleHQ",
        allowedaddresses=["202.10.10.2"])
    
    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{
    			SysContact:  pulumi.String(" NetOPsAdmin s.shitole@f5.com"),
    			SysLocation: pulumi.String("SeattleHQ"),
    			Allowedaddresses: pulumi.StringArray{
    				pulumi.String("202.10.10.2"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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()
        {
            SysContact = " NetOPsAdmin s.shitole@f5.com",
            SysLocation = "SeattleHQ",
            Allowedaddresses = new[]
            {
                "202.10.10.2",
            },
        });
    
    });
    
    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()
                .sysContact(" NetOPsAdmin s.shitole@f5.com")
                .sysLocation("SeattleHQ")
                .allowedaddresses("202.10.10.2")
                .build());
    
        }
    }
    
    resources:
      snmp:
        type: f5bigip:sys:Snmp
        properties:
          sysContact: ' NetOPsAdmin s.shitole@f5.com'
          sysLocation: SeattleHQ
          allowedaddresses:
            - 202.10.10.2
    

    Create Snmp Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Snmp(name: string, args?: SnmpArgs, opts?: CustomResourceOptions);
    @overload
    def Snmp(resource_name: str,
             args: Optional[SnmpArgs] = None,
             opts: Optional[ResourceOptions] = None)
    
    @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)
    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.
    
    

    Parameters

    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.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var snmpResource = new F5BigIP.Sys.Snmp("snmpResource", new()
    {
        Allowedaddresses = new[]
        {
            "string",
        },
        SysContact = "string",
        SysLocation = "string",
    });
    
    example, err := sys.NewSnmp(ctx, "snmpResource", &sys.SnmpArgs{
    	Allowedaddresses: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	SysContact:  pulumi.String("string"),
    	SysLocation: pulumi.String("string"),
    })
    
    var snmpResource = new Snmp("snmpResource", SnmpArgs.builder()
        .allowedaddresses("string")
        .sysContact("string")
        .sysLocation("string")
        .build());
    
    snmp_resource = f5bigip.sys.Snmp("snmpResource",
        allowedaddresses=["string"],
        sys_contact="string",
        sys_location="string")
    
    const snmpResource = new f5bigip.sys.Snmp("snmpResource", {
        allowedaddresses: ["string"],
        sysContact: "string",
        sysLocation: "string",
    });
    
    type: f5bigip:sys:Snmp
    properties:
        allowedaddresses:
            - string
        sysContact: string
        sysLocation: string
    

    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

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    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.17.6 published on Monday, Oct 28, 2024 by Pulumi