meraki.networks.SmTargetGroups
Explore with Pulumi AI
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:
- Network
Id string - networkId path parameter. Network ID
- Name string
- The name of this target group.
- Scope string
- The scope of the target group.
- Target
Group stringId - targetGroupId path parameter. Target group ID
- Network
Id string - networkId path parameter. Network ID
- Name string
- The name of this target group.
- Scope string
- The scope of the target group.
- Target
Group stringId - targetGroupId path parameter. Target group ID
- network
Id String - networkId path parameter. Network ID
- name String
- The name of this target group.
- scope String
- The scope of the target group.
- target
Group StringId - targetGroupId path parameter. Target group ID
- network
Id string - networkId path parameter. Network ID
- name string
- The name of this target group.
- scope string
- The scope of the target group.
- target
Group stringId - 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_ strid - targetGroupId path parameter. Target group ID
- network
Id String - networkId path parameter. Network ID
- name String
- The name of this target group.
- scope String
- The scope of the target group.
- target
Group StringId - 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.
- List<string>
- The tags of the target group.
- Id string
- The provider-assigned unique ID for this managed resource.
- []string
- The tags of the target group.
- id String
- The provider-assigned unique ID for this managed resource.
- List<String>
- The tags of the target group.
- id string
- The provider-assigned unique ID for this managed resource.
- string[]
- The tags of the target group.
- id str
- The provider-assigned unique ID for this managed resource.
- Sequence[str]
- The tags of the target group.
- id String
- The provider-assigned unique ID for this managed resource.
- 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.
- Name string
- The name of this target group.
- Network
Id string - networkId path parameter. Network ID
- Scope string
- The scope of the target group.
- List<string>
- The tags of the target group.
- Target
Group stringId - targetGroupId path parameter. Target group ID
- Name string
- The name of this target group.
- Network
Id string - networkId path parameter. Network ID
- Scope string
- The scope of the target group.
- []string
- The tags of the target group.
- Target
Group stringId - targetGroupId path parameter. Target group ID
- name String
- The name of this target group.
- network
Id String - networkId path parameter. Network ID
- scope String
- The scope of the target group.
- List<String>
- The tags of the target group.
- target
Group StringId - targetGroupId path parameter. Target group ID
- name string
- The name of this target group.
- network
Id string - networkId path parameter. Network ID
- scope string
- The scope of the target group.
- string[]
- The tags of the target group.
- target
Group stringId - 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.
- Sequence[str]
- The tags of the target group.
- target_
group_ strid - targetGroupId path parameter. Target group ID
- name String
- The name of this target group.
- network
Id String - networkId path parameter. Network ID
- scope String
- The scope of the target group.
- List<String>
- The tags of the target group.
- target
Group StringId - 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.