meraki.devices.SensorRelationships
Explore with Pulumi AI
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.devices.SensorRelationships;
import com.pulumi.meraki.devices.SensorRelationshipsArgs;
import com.pulumi.meraki.devices.inputs.SensorRelationshipsLivestreamArgs;
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 SensorRelationships("example", SensorRelationshipsArgs.builder()
.livestream(SensorRelationshipsLivestreamArgs.builder()
.related_devices(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build())
.serial("string")
.build());
ctx.export("merakiDevicesSensorRelationshipsExample", example);
}
}
resources:
example:
type: meraki:devices:SensorRelationships
properties:
livestream:
related_devices:
- serial: string
serial: string
outputs:
merakiDevicesSensorRelationshipsExample: ${example}
Create SensorRelationships Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SensorRelationships(name: string, args: SensorRelationshipsArgs, opts?: CustomResourceOptions);
@overload
def SensorRelationships(resource_name: str,
args: SensorRelationshipsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SensorRelationships(resource_name: str,
opts: Optional[ResourceOptions] = None,
serial: Optional[str] = None,
livestream: Optional[SensorRelationshipsLivestreamArgs] = None,
livestream_requests: Optional[Sequence[SensorRelationshipsLivestreamRequestArgs]] = None)
func NewSensorRelationships(ctx *Context, name string, args SensorRelationshipsArgs, opts ...ResourceOption) (*SensorRelationships, error)
public SensorRelationships(string name, SensorRelationshipsArgs args, CustomResourceOptions? opts = null)
public SensorRelationships(String name, SensorRelationshipsArgs args)
public SensorRelationships(String name, SensorRelationshipsArgs args, CustomResourceOptions options)
type: meraki:devices:SensorRelationships
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 SensorRelationshipsArgs
- 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 SensorRelationshipsArgs
- 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 SensorRelationshipsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SensorRelationshipsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SensorRelationshipsArgs
- 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 sensorRelationshipsResource = new Meraki.Devices.SensorRelationships("sensorRelationshipsResource", new()
{
Serial = "string",
Livestream = new Meraki.Devices.Inputs.SensorRelationshipsLivestreamArgs
{
RelatedDevices = new[]
{
new Meraki.Devices.Inputs.SensorRelationshipsLivestreamRelatedDeviceArgs
{
ProductType = "string",
Serial = "string",
},
},
},
LivestreamRequests = new[]
{
new Meraki.Devices.Inputs.SensorRelationshipsLivestreamRequestArgs
{
RelatedDevices = new[]
{
new Meraki.Devices.Inputs.SensorRelationshipsLivestreamRequestRelatedDeviceArgs
{
ProductType = "string",
Serial = "string",
},
},
},
},
});
example, err := devices.NewSensorRelationships(ctx, "sensorRelationshipsResource", &devices.SensorRelationshipsArgs{
Serial: pulumi.String("string"),
Livestream: &devices.SensorRelationshipsLivestreamArgs{
RelatedDevices: devices.SensorRelationshipsLivestreamRelatedDeviceArray{
&devices.SensorRelationshipsLivestreamRelatedDeviceArgs{
ProductType: pulumi.String("string"),
Serial: pulumi.String("string"),
},
},
},
LivestreamRequests: devices.SensorRelationshipsLivestreamRequestArray{
&devices.SensorRelationshipsLivestreamRequestArgs{
RelatedDevices: devices.SensorRelationshipsLivestreamRequestRelatedDeviceArray{
&devices.SensorRelationshipsLivestreamRequestRelatedDeviceArgs{
ProductType: pulumi.String("string"),
Serial: pulumi.String("string"),
},
},
},
},
})
var sensorRelationshipsResource = new SensorRelationships("sensorRelationshipsResource", SensorRelationshipsArgs.builder()
.serial("string")
.livestream(SensorRelationshipsLivestreamArgs.builder()
.relatedDevices(SensorRelationshipsLivestreamRelatedDeviceArgs.builder()
.productType("string")
.serial("string")
.build())
.build())
.livestreamRequests(SensorRelationshipsLivestreamRequestArgs.builder()
.relatedDevices(SensorRelationshipsLivestreamRequestRelatedDeviceArgs.builder()
.productType("string")
.serial("string")
.build())
.build())
.build());
sensor_relationships_resource = meraki.devices.SensorRelationships("sensorRelationshipsResource",
serial="string",
livestream=meraki.devices.SensorRelationshipsLivestreamArgs(
related_devices=[meraki.devices.SensorRelationshipsLivestreamRelatedDeviceArgs(
product_type="string",
serial="string",
)],
),
livestream_requests=[meraki.devices.SensorRelationshipsLivestreamRequestArgs(
related_devices=[meraki.devices.SensorRelationshipsLivestreamRequestRelatedDeviceArgs(
product_type="string",
serial="string",
)],
)])
const sensorRelationshipsResource = new meraki.devices.SensorRelationships("sensorRelationshipsResource", {
serial: "string",
livestream: {
relatedDevices: [{
productType: "string",
serial: "string",
}],
},
livestreamRequests: [{
relatedDevices: [{
productType: "string",
serial: "string",
}],
}],
});
type: meraki:devices:SensorRelationships
properties:
livestream:
relatedDevices:
- productType: string
serial: string
livestreamRequests:
- relatedDevices:
- productType: string
serial: string
serial: string
SensorRelationships 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 SensorRelationships resource accepts the following input properties:
- Serial string
- serial path parameter.
- Livestream
Sensor
Relationships Livestream - A role defined between an MT sensor and an MV camera that adds the camera's livestream to the sensor's details page. Snapshots from the camera will also appear in alert notifications that the sensor triggers.
- Livestream
Requests List<SensorRelationships Livestream Request> - A role defined between an MT sensor and an MV camera that adds the camera's r.Livestream to the sensor's details page. Snapshots from the camera will also appear in alert notifications that the sensor triggers.
- Serial string
- serial path parameter.
- Livestream
Sensor
Relationships Livestream Args - A role defined between an MT sensor and an MV camera that adds the camera's livestream to the sensor's details page. Snapshots from the camera will also appear in alert notifications that the sensor triggers.
- Livestream
Requests []SensorRelationships Livestream Request Args - A role defined between an MT sensor and an MV camera that adds the camera's r.Livestream to the sensor's details page. Snapshots from the camera will also appear in alert notifications that the sensor triggers.
- serial String
- serial path parameter.
- livestream
Sensor
Relationships Livestream - A role defined between an MT sensor and an MV camera that adds the camera's livestream to the sensor's details page. Snapshots from the camera will also appear in alert notifications that the sensor triggers.
- livestream
Requests List<SensorRelationships Livestream Request> - A role defined between an MT sensor and an MV camera that adds the camera's r.Livestream to the sensor's details page. Snapshots from the camera will also appear in alert notifications that the sensor triggers.
- serial string
- serial path parameter.
- livestream
Sensor
Relationships Livestream - A role defined between an MT sensor and an MV camera that adds the camera's livestream to the sensor's details page. Snapshots from the camera will also appear in alert notifications that the sensor triggers.
- livestream
Requests SensorRelationships Livestream Request[] - A role defined between an MT sensor and an MV camera that adds the camera's r.Livestream to the sensor's details page. Snapshots from the camera will also appear in alert notifications that the sensor triggers.
- serial str
- serial path parameter.
- livestream
Sensor
Relationships Livestream Args - A role defined between an MT sensor and an MV camera that adds the camera's livestream to the sensor's details page. Snapshots from the camera will also appear in alert notifications that the sensor triggers.
- livestream_
requests Sequence[SensorRelationships Livestream Request Args] - A role defined between an MT sensor and an MV camera that adds the camera's r.Livestream to the sensor's details page. Snapshots from the camera will also appear in alert notifications that the sensor triggers.
- serial String
- serial path parameter.
- livestream Property Map
- A role defined between an MT sensor and an MV camera that adds the camera's livestream to the sensor's details page. Snapshots from the camera will also appear in alert notifications that the sensor triggers.
- livestream
Requests List<Property Map> - A role defined between an MT sensor and an MV camera that adds the camera's r.Livestream to the sensor's details page. Snapshots from the camera will also appear in alert notifications that the sensor triggers.
Outputs
All input properties are implicitly available as output properties. Additionally, the SensorRelationships resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing SensorRelationships Resource
Get an existing SensorRelationships 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?: SensorRelationshipsState, opts?: CustomResourceOptions): SensorRelationships
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
livestream: Optional[SensorRelationshipsLivestreamArgs] = None,
livestream_requests: Optional[Sequence[SensorRelationshipsLivestreamRequestArgs]] = None,
serial: Optional[str] = None) -> SensorRelationships
func GetSensorRelationships(ctx *Context, name string, id IDInput, state *SensorRelationshipsState, opts ...ResourceOption) (*SensorRelationships, error)
public static SensorRelationships Get(string name, Input<string> id, SensorRelationshipsState? state, CustomResourceOptions? opts = null)
public static SensorRelationships get(String name, Output<String> id, SensorRelationshipsState 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.
- Livestream
Sensor
Relationships Livestream - A role defined between an MT sensor and an MV camera that adds the camera's livestream to the sensor's details page. Snapshots from the camera will also appear in alert notifications that the sensor triggers.
- Livestream
Requests List<SensorRelationships Livestream Request> - A role defined between an MT sensor and an MV camera that adds the camera's r.Livestream to the sensor's details page. Snapshots from the camera will also appear in alert notifications that the sensor triggers.
- Serial string
- serial path parameter.
- Livestream
Sensor
Relationships Livestream Args - A role defined between an MT sensor and an MV camera that adds the camera's livestream to the sensor's details page. Snapshots from the camera will also appear in alert notifications that the sensor triggers.
- Livestream
Requests []SensorRelationships Livestream Request Args - A role defined between an MT sensor and an MV camera that adds the camera's r.Livestream to the sensor's details page. Snapshots from the camera will also appear in alert notifications that the sensor triggers.
- Serial string
- serial path parameter.
- livestream
Sensor
Relationships Livestream - A role defined between an MT sensor and an MV camera that adds the camera's livestream to the sensor's details page. Snapshots from the camera will also appear in alert notifications that the sensor triggers.
- livestream
Requests List<SensorRelationships Livestream Request> - A role defined between an MT sensor and an MV camera that adds the camera's r.Livestream to the sensor's details page. Snapshots from the camera will also appear in alert notifications that the sensor triggers.
- serial String
- serial path parameter.
- livestream
Sensor
Relationships Livestream - A role defined between an MT sensor and an MV camera that adds the camera's livestream to the sensor's details page. Snapshots from the camera will also appear in alert notifications that the sensor triggers.
- livestream
Requests SensorRelationships Livestream Request[] - A role defined between an MT sensor and an MV camera that adds the camera's r.Livestream to the sensor's details page. Snapshots from the camera will also appear in alert notifications that the sensor triggers.
- serial string
- serial path parameter.
- livestream
Sensor
Relationships Livestream Args - A role defined between an MT sensor and an MV camera that adds the camera's livestream to the sensor's details page. Snapshots from the camera will also appear in alert notifications that the sensor triggers.
- livestream_
requests Sequence[SensorRelationships Livestream Request Args] - A role defined between an MT sensor and an MV camera that adds the camera's r.Livestream to the sensor's details page. Snapshots from the camera will also appear in alert notifications that the sensor triggers.
- serial str
- serial path parameter.
- livestream Property Map
- A role defined between an MT sensor and an MV camera that adds the camera's livestream to the sensor's details page. Snapshots from the camera will also appear in alert notifications that the sensor triggers.
- livestream
Requests List<Property Map> - A role defined between an MT sensor and an MV camera that adds the camera's r.Livestream to the sensor's details page. Snapshots from the camera will also appear in alert notifications that the sensor triggers.
- serial String
- serial path parameter.
Supporting Types
SensorRelationshipsLivestream, SensorRelationshipsLivestreamArgs
- List<Sensor
Relationships Livestream Related Device> - An array of the related devices for the role
- []Sensor
Relationships Livestream Related Device - An array of the related devices for the role
- List<Sensor
Relationships Livestream Related Device> - An array of the related devices for the role
- Sensor
Relationships Livestream Related Device[] - An array of the related devices for the role
- Sequence[Sensor
Relationships Livestream Related Device] - An array of the related devices for the role
- List<Property Map>
- An array of the related devices for the role
SensorRelationshipsLivestreamRelatedDevice, SensorRelationshipsLivestreamRelatedDeviceArgs
- Product
Type string - The product type of the related device
- Serial string
- The serial of the related device
- Product
Type string - The product type of the related device
- Serial string
- The serial of the related device
- product
Type String - The product type of the related device
- serial String
- The serial of the related device
- product
Type string - The product type of the related device
- serial string
- The serial of the related device
- product_
type str - The product type of the related device
- serial str
- The serial of the related device
- product
Type String - The product type of the related device
- serial String
- The serial of the related device
SensorRelationshipsLivestreamRequest, SensorRelationshipsLivestreamRequestArgs
- List<Sensor
Relationships Livestream Request Related Device> - An array of the related devices for the role
- []Sensor
Relationships Livestream Request Related Device - An array of the related devices for the role
- List<Sensor
Relationships Livestream Request Related Device> - An array of the related devices for the role
- Sensor
Relationships Livestream Request Related Device[] - An array of the related devices for the role
- Sequence[Sensor
Relationships Livestream Request Related Device] - An array of the related devices for the role
- List<Property Map>
- An array of the related devices for the role
SensorRelationshipsLivestreamRequestRelatedDevice, SensorRelationshipsLivestreamRequestRelatedDeviceArgs
- Product
Type string - The product type of the related device
- Serial string
- The serial of the related device
- Product
Type string - The product type of the related device
- Serial string
- The serial of the related device
- product
Type String - The product type of the related device
- serial String
- The serial of the related device
- product
Type string - The product type of the related device
- serial string
- The serial of the related device
- product_
type str - The product type of the related device
- serial str
- The serial of the related device
- product
Type String - The product type of the related device
- serial String
- The serial of the related device
Import
$ pulumi import meraki:devices/sensorRelationships:SensorRelationships example "serial"
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.