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);
}
}
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={
"device_fields": {
"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
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:
- Network
Id string - networkId path parameter. Network ID
- Parameters
Sm
Devices Fields Parameters
- Network
Id string - networkId path parameter. Network ID
- Parameters
Sm
Devices Fields Parameters Args
- network
Id String - networkId path parameter. Network ID
- parameters
Sm
Devices Fields Parameters
- network
Id string - networkId path parameter. Network ID
- parameters
Sm
Devices Fields Parameters
- network_
id str - networkId path parameter. Network ID
- parameters
Sm
Devices Fields Parameters Args
- network
Id 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<Sm
Devices Fields Item> - Array of ResponseSmUpdateNetworkSmDevicesFields
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]Sm
Devices Fields Item - Array of ResponseSmUpdateNetworkSmDevicesFields
- id String
- The provider-assigned unique ID for this managed resource.
- items
List<Sm
Devices Fields Item> - Array of ResponseSmUpdateNetworkSmDevicesFields
- id string
- The provider-assigned unique ID for this managed resource.
- items
Sm
Devices Fields Item[] - Array of ResponseSmUpdateNetworkSmDevicesFields
- id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[Sm
Devices Fields Item] - 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.
- Items
List<Sm
Devices Fields Item> - Array of ResponseSmUpdateNetworkSmDevicesFields
- Network
Id string - networkId path parameter. Network ID
- Parameters
Sm
Devices Fields Parameters
- Items
[]Sm
Devices Fields Item Args - Array of ResponseSmUpdateNetworkSmDevicesFields
- Network
Id string - networkId path parameter. Network ID
- Parameters
Sm
Devices Fields Parameters Args
- items
List<Sm
Devices Fields Item> - Array of ResponseSmUpdateNetworkSmDevicesFields
- network
Id String - networkId path parameter. Network ID
- parameters
Sm
Devices Fields Parameters
- items
Sm
Devices Fields Item[] - Array of ResponseSmUpdateNetworkSmDevicesFields
- network
Id string - networkId path parameter. Network ID
- parameters
Sm
Devices Fields Parameters
- items
Sequence[Sm
Devices Fields Item Args] - Array of ResponseSmUpdateNetworkSmDevicesFields
- network_
id str - networkId path parameter. Network ID
- parameters
Sm
Devices Fields Parameters Args
- items List<Property Map>
- Array of ResponseSmUpdateNetworkSmDevicesFields
- network
Id String - networkId path parameter. Network ID
- parameters Property Map
Supporting Types
SmDevicesFieldsItem, SmDevicesFieldsItemArgs
SmDevicesFieldsParameters, SmDevicesFieldsParametersArgs
- Device
Fields SmDevices Fields Parameters Device Fields - 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.
- Wifi
Mac string - The wifiMac of the device to be modified.
- Device
Fields SmDevices Fields Parameters Device Fields - 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.
- Wifi
Mac string - The wifiMac of the device to be modified.
- device
Fields SmDevices Fields Parameters Device Fields - 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.
- wifi
Mac String - The wifiMac of the device to be modified.
- device
Fields SmDevices Fields Parameters Device Fields - 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.
- wifi
Mac string - The wifiMac of the device to be modified.
- device_
fields SmDevices Fields Parameters Device Fields - 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.
- device
Fields 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.
- wifi
Mac String - The wifiMac of the device to be modified.
SmDevicesFieldsParametersDeviceFields, SmDevicesFieldsParametersDeviceFieldsArgs
Package Details
- Repository
- meraki pulumi/pulumi-meraki
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
meraki
Terraform Provider.