1. Packages
  2. Cisco Meraki
  3. API Docs
  4. organizations
  5. getSnmp
Cisco Meraki v0.2.4 published on Friday, Jun 14, 2024 by Pulumi

meraki.organizations.getSnmp

Explore with Pulumi AI

meraki logo
Cisco Meraki v0.2.4 published on Friday, Jun 14, 2024 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as meraki from "@pulumi/meraki";
    
    const example = meraki.organizations.getSnmp({
        organizationId: "string",
    });
    export const merakiOrganizationsSnmpExample = example.then(example => example.item);
    
    import pulumi
    import pulumi_meraki as meraki
    
    example = meraki.organizations.get_snmp(organization_id="string")
    pulumi.export("merakiOrganizationsSnmpExample", example.item)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-meraki/sdk/go/meraki/organizations"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := organizations.LookupSnmp(ctx, &organizations.LookupSnmpArgs{
    			OrganizationId: "string",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("merakiOrganizationsSnmpExample", example.Item)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Meraki = Pulumi.Meraki;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Meraki.Organizations.GetSnmp.Invoke(new()
        {
            OrganizationId = "string",
        });
    
        return new Dictionary<string, object?>
        {
            ["merakiOrganizationsSnmpExample"] = example.Apply(getSnmpResult => getSnmpResult.Item),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.meraki.organizations.OrganizationsFunctions;
    import com.pulumi.meraki.organizations.inputs.GetSnmpArgs;
    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 = OrganizationsFunctions.getSnmp(GetSnmpArgs.builder()
                .organizationId("string")
                .build());
    
            ctx.export("merakiOrganizationsSnmpExample", example.applyValue(getSnmpResult -> getSnmpResult.item()));
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: meraki:organizations:getSnmp
          Arguments:
            organizationId: string
    outputs:
      merakiOrganizationsSnmpExample: ${example.item}
    

    Using getSnmp

    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 getSnmp(args: GetSnmpArgs, opts?: InvokeOptions): Promise<GetSnmpResult>
    function getSnmpOutput(args: GetSnmpOutputArgs, opts?: InvokeOptions): Output<GetSnmpResult>
    def get_snmp(organization_id: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetSnmpResult
    def get_snmp_output(organization_id: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetSnmpResult]
    func LookupSnmp(ctx *Context, args *LookupSnmpArgs, opts ...InvokeOption) (*LookupSnmpResult, error)
    func LookupSnmpOutput(ctx *Context, args *LookupSnmpOutputArgs, opts ...InvokeOption) LookupSnmpResultOutput

    > Note: This function is named LookupSnmp in the Go SDK.

    public static class GetSnmp 
    {
        public static Task<GetSnmpResult> InvokeAsync(GetSnmpArgs args, InvokeOptions? opts = null)
        public static Output<GetSnmpResult> Invoke(GetSnmpInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSnmpResult> getSnmp(GetSnmpArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: meraki:organizations/getSnmp:getSnmp
      arguments:
        # arguments dictionary

    The following arguments are supported:

    OrganizationId string
    organizationId path parameter. Organization ID
    OrganizationId string
    organizationId path parameter. Organization ID
    organizationId String
    organizationId path parameter. Organization ID
    organizationId string
    organizationId path parameter. Organization ID
    organization_id str
    organizationId path parameter. Organization ID
    organizationId String
    organizationId path parameter. Organization ID

    getSnmp Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Item GetSnmpItem
    OrganizationId string
    organizationId path parameter. Organization ID
    Id string
    The provider-assigned unique ID for this managed resource.
    Item GetSnmpItem
    OrganizationId string
    organizationId path parameter. Organization ID
    id String
    The provider-assigned unique ID for this managed resource.
    item GetSnmpItem
    organizationId String
    organizationId path parameter. Organization ID
    id string
    The provider-assigned unique ID for this managed resource.
    item GetSnmpItem
    organizationId string
    organizationId path parameter. Organization ID
    id str
    The provider-assigned unique ID for this managed resource.
    item GetSnmpItem
    organization_id str
    organizationId path parameter. Organization ID
    id String
    The provider-assigned unique ID for this managed resource.
    item Property Map
    organizationId String
    organizationId path parameter. Organization ID

    Supporting Types

    GetSnmpItem

    Hostname string
    The hostname of the SNMP server.
    PeerIps List<string>
    The list of IPv4 addresses that are allowed to access the SNMP server.
    Port int
    The port of the SNMP server.
    V2CommunityString string
    The community string for SNMP version 2c, if enabled.
    V2cEnabled bool
    Boolean indicating whether SNMP version 2c is enabled for the organization.
    V3AuthMode string
    The SNMP version 3 authentication mode. Can be either 'MD5' or 'SHA'.
    V3Enabled bool
    Boolean indicating whether SNMP version 3 is enabled for the organization.
    V3PrivMode string
    The SNMP version 3 privacy mode. Can be either 'DES' or 'AES128'.
    V3User string
    The user for SNMP version 3, if enabled.
    Hostname string
    The hostname of the SNMP server.
    PeerIps []string
    The list of IPv4 addresses that are allowed to access the SNMP server.
    Port int
    The port of the SNMP server.
    V2CommunityString string
    The community string for SNMP version 2c, if enabled.
    V2cEnabled bool
    Boolean indicating whether SNMP version 2c is enabled for the organization.
    V3AuthMode string
    The SNMP version 3 authentication mode. Can be either 'MD5' or 'SHA'.
    V3Enabled bool
    Boolean indicating whether SNMP version 3 is enabled for the organization.
    V3PrivMode string
    The SNMP version 3 privacy mode. Can be either 'DES' or 'AES128'.
    V3User string
    The user for SNMP version 3, if enabled.
    hostname String
    The hostname of the SNMP server.
    peerIps List<String>
    The list of IPv4 addresses that are allowed to access the SNMP server.
    port Integer
    The port of the SNMP server.
    v2CommunityString String
    The community string for SNMP version 2c, if enabled.
    v2cEnabled Boolean
    Boolean indicating whether SNMP version 2c is enabled for the organization.
    v3AuthMode String
    The SNMP version 3 authentication mode. Can be either 'MD5' or 'SHA'.
    v3Enabled Boolean
    Boolean indicating whether SNMP version 3 is enabled for the organization.
    v3PrivMode String
    The SNMP version 3 privacy mode. Can be either 'DES' or 'AES128'.
    v3User String
    The user for SNMP version 3, if enabled.
    hostname string
    The hostname of the SNMP server.
    peerIps string[]
    The list of IPv4 addresses that are allowed to access the SNMP server.
    port number
    The port of the SNMP server.
    v2CommunityString string
    The community string for SNMP version 2c, if enabled.
    v2cEnabled boolean
    Boolean indicating whether SNMP version 2c is enabled for the organization.
    v3AuthMode string
    The SNMP version 3 authentication mode. Can be either 'MD5' or 'SHA'.
    v3Enabled boolean
    Boolean indicating whether SNMP version 3 is enabled for the organization.
    v3PrivMode string
    The SNMP version 3 privacy mode. Can be either 'DES' or 'AES128'.
    v3User string
    The user for SNMP version 3, if enabled.
    hostname str
    The hostname of the SNMP server.
    peer_ips Sequence[str]
    The list of IPv4 addresses that are allowed to access the SNMP server.
    port int
    The port of the SNMP server.
    v2_community_string str
    The community string for SNMP version 2c, if enabled.
    v2c_enabled bool
    Boolean indicating whether SNMP version 2c is enabled for the organization.
    v3_auth_mode str
    The SNMP version 3 authentication mode. Can be either 'MD5' or 'SHA'.
    v3_enabled bool
    Boolean indicating whether SNMP version 3 is enabled for the organization.
    v3_priv_mode str
    The SNMP version 3 privacy mode. Can be either 'DES' or 'AES128'.
    v3_user str
    The user for SNMP version 3, if enabled.
    hostname String
    The hostname of the SNMP server.
    peerIps List<String>
    The list of IPv4 addresses that are allowed to access the SNMP server.
    port Number
    The port of the SNMP server.
    v2CommunityString String
    The community string for SNMP version 2c, if enabled.
    v2cEnabled Boolean
    Boolean indicating whether SNMP version 2c is enabled for the organization.
    v3AuthMode String
    The SNMP version 3 authentication mode. Can be either 'MD5' or 'SHA'.
    v3Enabled Boolean
    Boolean indicating whether SNMP version 3 is enabled for the organization.
    v3PrivMode String
    The SNMP version 3 privacy mode. Can be either 'DES' or 'AES128'.
    v3User String
    The user for SNMP version 3, if enabled.

    Package Details

    Repository
    meraki pulumi/pulumi-meraki
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the meraki Terraform Provider.
    meraki logo
    Cisco Meraki v0.2.4 published on Friday, Jun 14, 2024 by Pulumi