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

meraki.networks.SmDevicesFields

Explore with Pulumi AI

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

    ~>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);
        }
    }
    
    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}
    

    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 string
    The unique name of the resource.
    args SmDevicesFieldsArgs
    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 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 string
    The unique name of the resource.
    args SmDevicesFieldsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SmDevicesFieldsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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",
        },
    });
    
    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"),
    	},
    })
    
    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());
    
    sm_devices_fields_resource = meraki.networks.SmDevicesFields("smDevicesFieldsResource",
        network_id="string",
        parameters=meraki.networks.SmDevicesFieldsParametersArgs(
            device_fields=meraki.networks.SmDevicesFieldsParametersDeviceFieldsArgs(
                name="string",
                notes="string",
            ),
            id="string",
            serial="string",
            wifi_mac="string",
        ))
    
    const smDevicesFieldsResource = new meraki.networks.SmDevicesFields("smDevicesFieldsResource", {
        networkId: "string",
        parameters: {
            deviceFields: {
                name: "string",
                notes: "string",
            },
            id: "string",
            serial: "string",
            wifiMac: "string",
        },
    });
    
    type: meraki:networks:SmDevicesFields
    properties:
        networkId: string
        parameters:
            deviceFields:
                name: string
                notes: string
            id: string
            serial: string
            wifiMac: string
    

    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

    The SmDevicesFields resource accepts the following input properties:

    NetworkId string
    networkId path parameter. Network ID
    Parameters SmDevicesFieldsParameters
    NetworkId string
    networkId path parameter. Network ID
    Parameters SmDevicesFieldsParametersArgs
    networkId String
    networkId path parameter. Network ID
    parameters SmDevicesFieldsParameters
    networkId string
    networkId path parameter. Network ID
    parameters SmDevicesFieldsParameters
    network_id str
    networkId path parameter. Network ID
    parameters SmDevicesFieldsParametersArgs
    networkId String
    networkId path parameter. Network ID
    parameters 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)
    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:
    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.
    meraki logo
    Cisco Meraki v0.2.4 published on Friday, Jun 14, 2024 by Pulumi