1. Packages
  2. Cisco Meraki Provider
  3. API Docs
  4. networks
  5. SmDevicesFields
Cisco Meraki v0.4.1 published on Saturday, Mar 15, 2025 by Pulumi

meraki.networks.SmDevicesFields

Explore with Pulumi AI

~>Warning: This resource does not represent a real-world entity in Meraki Dashboard, therefore changing or deleting this resource on its own has no immediate effect. Instead, it is a task part of a Meraki Dashboard workflow. It is executed in Meraki without any additional verification. It does not check if it was executed before or if a similar configuration or action already existed previously.

Example Usage

Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.meraki.networks.SmDevicesFields;
import com.pulumi.meraki.networks.SmDevicesFieldsArgs;
import com.pulumi.meraki.networks.inputs.SmDevicesFieldsParametersArgs;
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 SmDevicesFields("example", SmDevicesFieldsArgs.builder()
            .networkId("string")
            .parameters(SmDevicesFieldsParametersArgs.builder()
                .device_fields(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
                .id("1284392014819")
                .serial("XY0XX0Y0X0")
                .wifi_mac("00:11:22:33:44:55")
                .build())
            .build());

        ctx.export("merakiNetworksSmDevicesFieldsExample", example);
    }
}
Copy
resources:
  example:
    type: meraki:networks:SmDevicesFields
    properties:
      networkId: string
      parameters:
        device_fields:
          name: Miles's phone
          notes: Here's some info about my device
        id: '1284392014819'
        serial: XY0XX0Y0X0
        wifi_mac: 00:11:22:33:44:55
outputs:
  merakiNetworksSmDevicesFieldsExample: ${example}
Copy

Create SmDevicesFields Resource

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

Constructor syntax

new SmDevicesFields(name: string, args: SmDevicesFieldsArgs, opts?: CustomResourceOptions);
@overload
def SmDevicesFields(resource_name: str,
                    args: SmDevicesFieldsArgs,
                    opts: Optional[ResourceOptions] = None)

@overload
def SmDevicesFields(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    network_id: Optional[str] = None,
                    parameters: Optional[SmDevicesFieldsParametersArgs] = None)
func NewSmDevicesFields(ctx *Context, name string, args SmDevicesFieldsArgs, opts ...ResourceOption) (*SmDevicesFields, error)
public SmDevicesFields(string name, SmDevicesFieldsArgs args, CustomResourceOptions? opts = null)
public SmDevicesFields(String name, SmDevicesFieldsArgs args)
public SmDevicesFields(String name, SmDevicesFieldsArgs args, CustomResourceOptions options)
type: meraki:networks:SmDevicesFields
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. SmDevicesFieldsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. SmDevicesFieldsArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. SmDevicesFieldsArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. SmDevicesFieldsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. SmDevicesFieldsArgs
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 smDevicesFieldsResource = new Meraki.Networks.SmDevicesFields("smDevicesFieldsResource", new()
{
    NetworkId = "string",
    Parameters = new Meraki.Networks.Inputs.SmDevicesFieldsParametersArgs
    {
        DeviceFields = new Meraki.Networks.Inputs.SmDevicesFieldsParametersDeviceFieldsArgs
        {
            Name = "string",
            Notes = "string",
        },
        Id = "string",
        Serial = "string",
        WifiMac = "string",
    },
});
Copy
example, err := networks.NewSmDevicesFields(ctx, "smDevicesFieldsResource", &networks.SmDevicesFieldsArgs{
	NetworkId: pulumi.String("string"),
	Parameters: &networks.SmDevicesFieldsParametersArgs{
		DeviceFields: &networks.SmDevicesFieldsParametersDeviceFieldsArgs{
			Name:  pulumi.String("string"),
			Notes: pulumi.String("string"),
		},
		Id:      pulumi.String("string"),
		Serial:  pulumi.String("string"),
		WifiMac: pulumi.String("string"),
	},
})
Copy
var smDevicesFieldsResource = new SmDevicesFields("smDevicesFieldsResource", SmDevicesFieldsArgs.builder()
    .networkId("string")
    .parameters(SmDevicesFieldsParametersArgs.builder()
        .deviceFields(SmDevicesFieldsParametersDeviceFieldsArgs.builder()
            .name("string")
            .notes("string")
            .build())
        .id("string")
        .serial("string")
        .wifiMac("string")
        .build())
    .build());
Copy
sm_devices_fields_resource = meraki.networks.SmDevicesFields("smDevicesFieldsResource",
    network_id="string",
    parameters={
        "device_fields": {
            "name": "string",
            "notes": "string",
        },
        "id": "string",
        "serial": "string",
        "wifi_mac": "string",
    })
Copy
const smDevicesFieldsResource = new meraki.networks.SmDevicesFields("smDevicesFieldsResource", {
    networkId: "string",
    parameters: {
        deviceFields: {
            name: "string",
            notes: "string",
        },
        id: "string",
        serial: "string",
        wifiMac: "string",
    },
});
Copy
type: meraki:networks:SmDevicesFields
properties:
    networkId: string
    parameters:
        deviceFields:
            name: string
            notes: string
        id: string
        serial: string
        wifiMac: string
Copy

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

NetworkId This property is required. string
networkId path parameter. Network ID
Parameters This property is required. SmDevicesFieldsParameters
NetworkId This property is required. string
networkId path parameter. Network ID
Parameters This property is required. SmDevicesFieldsParametersArgs
networkId This property is required. String
networkId path parameter. Network ID
parameters This property is required. SmDevicesFieldsParameters
networkId This property is required. string
networkId path parameter. Network ID
parameters This property is required. SmDevicesFieldsParameters
network_id This property is required. str
networkId path parameter. Network ID
parameters This property is required. SmDevicesFieldsParametersArgs
networkId This property is required. String
networkId path parameter. Network ID
parameters This property is required. Property Map

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Items List<SmDevicesFieldsItem>
Array of ResponseSmUpdateNetworkSmDevicesFields
Id string
The provider-assigned unique ID for this managed resource.
Items []SmDevicesFieldsItem
Array of ResponseSmUpdateNetworkSmDevicesFields
id String
The provider-assigned unique ID for this managed resource.
items List<SmDevicesFieldsItem>
Array of ResponseSmUpdateNetworkSmDevicesFields
id string
The provider-assigned unique ID for this managed resource.
items SmDevicesFieldsItem[]
Array of ResponseSmUpdateNetworkSmDevicesFields
id str
The provider-assigned unique ID for this managed resource.
items Sequence[SmDevicesFieldsItem]
Array of ResponseSmUpdateNetworkSmDevicesFields
id String
The provider-assigned unique ID for this managed resource.
items List<Property Map>
Array of ResponseSmUpdateNetworkSmDevicesFields

Look up Existing SmDevicesFields Resource

Get an existing SmDevicesFields 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?: SmDevicesFieldsState, opts?: CustomResourceOptions): SmDevicesFields
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        items: Optional[Sequence[SmDevicesFieldsItemArgs]] = None,
        network_id: Optional[str] = None,
        parameters: Optional[SmDevicesFieldsParametersArgs] = None) -> SmDevicesFields
func GetSmDevicesFields(ctx *Context, name string, id IDInput, state *SmDevicesFieldsState, opts ...ResourceOption) (*SmDevicesFields, error)
public static SmDevicesFields Get(string name, Input<string> id, SmDevicesFieldsState? state, CustomResourceOptions? opts = null)
public static SmDevicesFields get(String name, Output<String> id, SmDevicesFieldsState state, CustomResourceOptions options)
resources:  _:    type: meraki:networks:SmDevicesFields    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Items List<SmDevicesFieldsItem>
Array of ResponseSmUpdateNetworkSmDevicesFields
NetworkId string
networkId path parameter. Network ID
Parameters SmDevicesFieldsParameters
Items []SmDevicesFieldsItemArgs
Array of ResponseSmUpdateNetworkSmDevicesFields
NetworkId string
networkId path parameter. Network ID
Parameters SmDevicesFieldsParametersArgs
items List<SmDevicesFieldsItem>
Array of ResponseSmUpdateNetworkSmDevicesFields
networkId String
networkId path parameter. Network ID
parameters SmDevicesFieldsParameters
items SmDevicesFieldsItem[]
Array of ResponseSmUpdateNetworkSmDevicesFields
networkId string
networkId path parameter. Network ID
parameters SmDevicesFieldsParameters
items Sequence[SmDevicesFieldsItemArgs]
Array of ResponseSmUpdateNetworkSmDevicesFields
network_id str
networkId path parameter. Network ID
parameters SmDevicesFieldsParametersArgs
items List<Property Map>
Array of ResponseSmUpdateNetworkSmDevicesFields
networkId String
networkId path parameter. Network ID
parameters Property Map

Supporting Types

SmDevicesFieldsItem
, SmDevicesFieldsItemArgs

Id string
The Meraki Id of the device record.
Name string
The name of the device.
Notes string
Notes associated with the device.
Serial string
The device serial.
WifiMac string
The MAC of the device.
Id string
The Meraki Id of the device record.
Name string
The name of the device.
Notes string
Notes associated with the device.
Serial string
The device serial.
WifiMac string
The MAC of the device.
id String
The Meraki Id of the device record.
name String
The name of the device.
notes String
Notes associated with the device.
serial String
The device serial.
wifiMac String
The MAC of the device.
id string
The Meraki Id of the device record.
name string
The name of the device.
notes string
Notes associated with the device.
serial string
The device serial.
wifiMac string
The MAC of the device.
id str
The Meraki Id of the device record.
name str
The name of the device.
notes str
Notes associated with the device.
serial str
The device serial.
wifi_mac str
The MAC of the device.
id String
The Meraki Id of the device record.
name String
The name of the device.
notes String
Notes associated with the device.
serial String
The device serial.
wifiMac String
The MAC of the device.

SmDevicesFieldsParameters
, SmDevicesFieldsParametersArgs

DeviceFields SmDevicesFieldsParametersDeviceFields
The new fields of the device. Each field of this object is optional.
Id string
The id of the device to be modified.
Serial string
The serial of the device to be modified.
WifiMac string
The wifiMac of the device to be modified.
DeviceFields SmDevicesFieldsParametersDeviceFields
The new fields of the device. Each field of this object is optional.
Id string
The id of the device to be modified.
Serial string
The serial of the device to be modified.
WifiMac string
The wifiMac of the device to be modified.
deviceFields SmDevicesFieldsParametersDeviceFields
The new fields of the device. Each field of this object is optional.
id String
The id of the device to be modified.
serial String
The serial of the device to be modified.
wifiMac String
The wifiMac of the device to be modified.
deviceFields SmDevicesFieldsParametersDeviceFields
The new fields of the device. Each field of this object is optional.
id string
The id of the device to be modified.
serial string
The serial of the device to be modified.
wifiMac string
The wifiMac of the device to be modified.
device_fields SmDevicesFieldsParametersDeviceFields
The new fields of the device. Each field of this object is optional.
id str
The id of the device to be modified.
serial str
The serial of the device to be modified.
wifi_mac str
The wifiMac of the device to be modified.
deviceFields Property Map
The new fields of the device. Each field of this object is optional.
id String
The id of the device to be modified.
serial String
The serial of the device to be modified.
wifiMac String
The wifiMac of the device to be modified.

SmDevicesFieldsParametersDeviceFields
, SmDevicesFieldsParametersDeviceFieldsArgs

Name string
New name for the device
Notes string
New notes for the device
Name string
New name for the device
Notes string
New notes for the device
name String
New name for the device
notes String
New notes for the device
name string
New name for the device
notes string
New notes for the device
name str
New name for the device
notes str
New notes for the device
name String
New name for the device
notes String
New notes for the device

Package Details

Repository
meraki pulumi/pulumi-meraki
License
Apache-2.0
Notes
This Pulumi package is based on the meraki Terraform Provider.