1. Packages
  2. Meraki Provider
  3. API Docs
  4. networks
  5. SmTargetGroups
Cisco Meraki v0.3.2 published on Tuesday, Sep 24, 2024 by Pulumi

meraki.networks.SmTargetGroups

Explore with Pulumi AI

meraki logo
Cisco Meraki v0.3.2 published on Tuesday, Sep 24, 2024 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as meraki from "@pulumi/meraki";
    
    const example = new meraki.networks.SmTargetGroups("example", {
        name: "Target group name",
        networkId: "string",
        scope: "withAny, tag1, tag2",
    });
    export const merakiNetworksSmTargetGroupsExample = example;
    
    import pulumi
    import pulumi_meraki as meraki
    
    example = meraki.networks.SmTargetGroups("example",
        name="Target group name",
        network_id="string",
        scope="withAny, tag1, tag2")
    pulumi.export("merakiNetworksSmTargetGroupsExample", example)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-meraki/sdk/go/meraki/networks"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := networks.NewSmTargetGroups(ctx, "example", &networks.SmTargetGroupsArgs{
    			Name:      pulumi.String("Target group name"),
    			NetworkId: pulumi.String("string"),
    			Scope:     pulumi.String("withAny, tag1, tag2"),
    		})
    		if err != nil {
    			return err
    		}
    		ctx.Export("merakiNetworksSmTargetGroupsExample", example)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Meraki = Pulumi.Meraki;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Meraki.Networks.SmTargetGroups("example", new()
        {
            Name = "Target group name",
            NetworkId = "string",
            Scope = "withAny, tag1, tag2",
        });
    
        return new Dictionary<string, object?>
        {
            ["merakiNetworksSmTargetGroupsExample"] = example,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.meraki.networks.SmTargetGroups;
    import com.pulumi.meraki.networks.SmTargetGroupsArgs;
    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 SmTargetGroups("example", SmTargetGroupsArgs.builder()
                .name("Target group name")
                .networkId("string")
                .scope("withAny, tag1, tag2")
                .build());
    
            ctx.export("merakiNetworksSmTargetGroupsExample", example);
        }
    }
    
    resources:
      example:
        type: meraki:networks:SmTargetGroups
        properties:
          name: Target group name
          networkId: string
          scope: withAny, tag1, tag2
    outputs:
      merakiNetworksSmTargetGroupsExample: ${example}
    

    Create SmTargetGroups Resource

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

    Constructor syntax

    new SmTargetGroups(name: string, args: SmTargetGroupsArgs, opts?: CustomResourceOptions);
    @overload
    def SmTargetGroups(resource_name: str,
                       args: SmTargetGroupsArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def SmTargetGroups(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       network_id: Optional[str] = None,
                       name: Optional[str] = None,
                       scope: Optional[str] = None,
                       target_group_id: Optional[str] = None)
    func NewSmTargetGroups(ctx *Context, name string, args SmTargetGroupsArgs, opts ...ResourceOption) (*SmTargetGroups, error)
    public SmTargetGroups(string name, SmTargetGroupsArgs args, CustomResourceOptions? opts = null)
    public SmTargetGroups(String name, SmTargetGroupsArgs args)
    public SmTargetGroups(String name, SmTargetGroupsArgs args, CustomResourceOptions options)
    
    type: meraki:networks:SmTargetGroups
    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 SmTargetGroupsArgs
    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 SmTargetGroupsArgs
    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 SmTargetGroupsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SmTargetGroupsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SmTargetGroupsArgs
    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 smTargetGroupsResource = new Meraki.Networks.SmTargetGroups("smTargetGroupsResource", new()
    {
        NetworkId = "string",
        Name = "string",
        Scope = "string",
        TargetGroupId = "string",
    });
    
    example, err := networks.NewSmTargetGroups(ctx, "smTargetGroupsResource", &networks.SmTargetGroupsArgs{
    	NetworkId:     pulumi.String("string"),
    	Name:          pulumi.String("string"),
    	Scope:         pulumi.String("string"),
    	TargetGroupId: pulumi.String("string"),
    })
    
    var smTargetGroupsResource = new SmTargetGroups("smTargetGroupsResource", SmTargetGroupsArgs.builder()
        .networkId("string")
        .name("string")
        .scope("string")
        .targetGroupId("string")
        .build());
    
    sm_target_groups_resource = meraki.networks.SmTargetGroups("smTargetGroupsResource",
        network_id="string",
        name="string",
        scope="string",
        target_group_id="string")
    
    const smTargetGroupsResource = new meraki.networks.SmTargetGroups("smTargetGroupsResource", {
        networkId: "string",
        name: "string",
        scope: "string",
        targetGroupId: "string",
    });
    
    type: meraki:networks:SmTargetGroups
    properties:
        name: string
        networkId: string
        scope: string
        targetGroupId: string
    

    SmTargetGroups 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 SmTargetGroups resource accepts the following input properties:

    NetworkId string
    networkId path parameter. Network ID
    Name string
    The name of this target group.
    Scope string
    The scope of the target group.
    TargetGroupId string
    targetGroupId path parameter. Target group ID
    NetworkId string
    networkId path parameter. Network ID
    Name string
    The name of this target group.
    Scope string
    The scope of the target group.
    TargetGroupId string
    targetGroupId path parameter. Target group ID
    networkId String
    networkId path parameter. Network ID
    name String
    The name of this target group.
    scope String
    The scope of the target group.
    targetGroupId String
    targetGroupId path parameter. Target group ID
    networkId string
    networkId path parameter. Network ID
    name string
    The name of this target group.
    scope string
    The scope of the target group.
    targetGroupId string
    targetGroupId path parameter. Target group ID
    network_id str
    networkId path parameter. Network ID
    name str
    The name of this target group.
    scope str
    The scope of the target group.
    target_group_id str
    targetGroupId path parameter. Target group ID
    networkId String
    networkId path parameter. Network ID
    name String
    The name of this target group.
    scope String
    The scope of the target group.
    targetGroupId String
    targetGroupId path parameter. Target group ID

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SmTargetGroups resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Tags List<string>
    The tags of the target group.
    Id string
    The provider-assigned unique ID for this managed resource.
    Tags []string
    The tags of the target group.
    id String
    The provider-assigned unique ID for this managed resource.
    tags List<String>
    The tags of the target group.
    id string
    The provider-assigned unique ID for this managed resource.
    tags string[]
    The tags of the target group.
    id str
    The provider-assigned unique ID for this managed resource.
    tags Sequence[str]
    The tags of the target group.
    id String
    The provider-assigned unique ID for this managed resource.
    tags List<String>
    The tags of the target group.

    Look up Existing SmTargetGroups Resource

    Get an existing SmTargetGroups 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?: SmTargetGroupsState, opts?: CustomResourceOptions): SmTargetGroups
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            name: Optional[str] = None,
            network_id: Optional[str] = None,
            scope: Optional[str] = None,
            tags: Optional[Sequence[str]] = None,
            target_group_id: Optional[str] = None) -> SmTargetGroups
    func GetSmTargetGroups(ctx *Context, name string, id IDInput, state *SmTargetGroupsState, opts ...ResourceOption) (*SmTargetGroups, error)
    public static SmTargetGroups Get(string name, Input<string> id, SmTargetGroupsState? state, CustomResourceOptions? opts = null)
    public static SmTargetGroups get(String name, Output<String> id, SmTargetGroupsState 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:
    Name string
    The name of this target group.
    NetworkId string
    networkId path parameter. Network ID
    Scope string
    The scope of the target group.
    Tags List<string>
    The tags of the target group.
    TargetGroupId string
    targetGroupId path parameter. Target group ID
    Name string
    The name of this target group.
    NetworkId string
    networkId path parameter. Network ID
    Scope string
    The scope of the target group.
    Tags []string
    The tags of the target group.
    TargetGroupId string
    targetGroupId path parameter. Target group ID
    name String
    The name of this target group.
    networkId String
    networkId path parameter. Network ID
    scope String
    The scope of the target group.
    tags List<String>
    The tags of the target group.
    targetGroupId String
    targetGroupId path parameter. Target group ID
    name string
    The name of this target group.
    networkId string
    networkId path parameter. Network ID
    scope string
    The scope of the target group.
    tags string[]
    The tags of the target group.
    targetGroupId string
    targetGroupId path parameter. Target group ID
    name str
    The name of this target group.
    network_id str
    networkId path parameter. Network ID
    scope str
    The scope of the target group.
    tags Sequence[str]
    The tags of the target group.
    target_group_id str
    targetGroupId path parameter. Target group ID
    name String
    The name of this target group.
    networkId String
    networkId path parameter. Network ID
    scope String
    The scope of the target group.
    tags List<String>
    The tags of the target group.
    targetGroupId String
    targetGroupId path parameter. Target group ID

    Import

    $ pulumi import meraki:networks/smTargetGroups:SmTargetGroups example "network_id,target_group_id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    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.3.2 published on Tuesday, Sep 24, 2024 by Pulumi