Cisco Meraki v0.2.4 published on Friday, Jun 14, 2024 by Pulumi
meraki.devices.getSensorRelationships
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as meraki from "@pulumi/meraki";
const example = meraki.devices.getSensorRelationships({
serial: "string",
});
export const merakiDevicesSensorRelationshipsExample = example.then(example => example.item);
import pulumi
import pulumi_meraki as meraki
example = meraki.devices.get_sensor_relationships(serial="string")
pulumi.export("merakiDevicesSensorRelationshipsExample", example.item)
package main
import (
"github.com/pulumi/pulumi-meraki/sdk/go/meraki/devices"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := devices.LookupSensorRelationships(ctx, &devices.LookupSensorRelationshipsArgs{
Serial: "string",
}, nil)
if err != nil {
return err
}
ctx.Export("merakiDevicesSensorRelationshipsExample", example.Item)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Meraki = Pulumi.Meraki;
return await Deployment.RunAsync(() =>
{
var example = Meraki.Devices.GetSensorRelationships.Invoke(new()
{
Serial = "string",
});
return new Dictionary<string, object?>
{
["merakiDevicesSensorRelationshipsExample"] = example.Apply(getSensorRelationshipsResult => getSensorRelationshipsResult.Item),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.meraki.devices.DevicesFunctions;
import com.pulumi.meraki.devices.inputs.GetSensorRelationshipsArgs;
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) {
final var example = DevicesFunctions.getSensorRelationships(GetSensorRelationshipsArgs.builder()
.serial("string")
.build());
ctx.export("merakiDevicesSensorRelationshipsExample", example.applyValue(getSensorRelationshipsResult -> getSensorRelationshipsResult.item()));
}
}
variables:
example:
fn::invoke:
Function: meraki:devices:getSensorRelationships
Arguments:
serial: string
outputs:
merakiDevicesSensorRelationshipsExample: ${example.item}
Using getSensorRelationships
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSensorRelationships(args: GetSensorRelationshipsArgs, opts?: InvokeOptions): Promise<GetSensorRelationshipsResult>
function getSensorRelationshipsOutput(args: GetSensorRelationshipsOutputArgs, opts?: InvokeOptions): Output<GetSensorRelationshipsResult>
def get_sensor_relationships(serial: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSensorRelationshipsResult
def get_sensor_relationships_output(serial: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSensorRelationshipsResult]
func LookupSensorRelationships(ctx *Context, args *LookupSensorRelationshipsArgs, opts ...InvokeOption) (*LookupSensorRelationshipsResult, error)
func LookupSensorRelationshipsOutput(ctx *Context, args *LookupSensorRelationshipsOutputArgs, opts ...InvokeOption) LookupSensorRelationshipsResultOutput
> Note: This function is named LookupSensorRelationships
in the Go SDK.
public static class GetSensorRelationships
{
public static Task<GetSensorRelationshipsResult> InvokeAsync(GetSensorRelationshipsArgs args, InvokeOptions? opts = null)
public static Output<GetSensorRelationshipsResult> Invoke(GetSensorRelationshipsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSensorRelationshipsResult> getSensorRelationships(GetSensorRelationshipsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: meraki:devices/getSensorRelationships:getSensorRelationships
arguments:
# arguments dictionary
The following arguments are supported:
- Serial string
- serial path parameter.
- Serial string
- serial path parameter.
- serial String
- serial path parameter.
- serial string
- serial path parameter.
- serial str
- serial path parameter.
- serial String
- serial path parameter.
getSensorRelationships Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Item
Get
Sensor Relationships Item - Serial string
- serial path parameter.
- Id string
- The provider-assigned unique ID for this managed resource.
- Item
Get
Sensor Relationships Item - Serial string
- serial path parameter.
- id String
- The provider-assigned unique ID for this managed resource.
- item
Get
Sensor Relationships Item - serial String
- serial path parameter.
- id string
- The provider-assigned unique ID for this managed resource.
- item
Get
Sensor Relationships Item - serial string
- serial path parameter.
- id str
- The provider-assigned unique ID for this managed resource.
- item
Get
Sensor Relationships Item - serial str
- serial path parameter.
- id String
- The provider-assigned unique ID for this managed resource.
- item Property Map
- serial String
- serial path parameter.
Supporting Types
GetSensorRelationshipsItem
- Livestream
Get
Sensor Relationships Item 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
Get
Sensor Relationships Item 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
Get
Sensor Relationships Item 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
Get
Sensor Relationships Item 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
Get
Sensor Relationships Item 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 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.
GetSensorRelationshipsItemLivestream
- List<Get
Sensor Relationships Item Livestream Related Device> - An array of the related devices for the role
- []Get
Sensor Relationships Item Livestream Related Device - An array of the related devices for the role
- List<Get
Sensor Relationships Item Livestream Related Device> - An array of the related devices for the role
- Get
Sensor Relationships Item Livestream Related Device[] - An array of the related devices for the role
- Sequence[Get
Sensor Relationships Item Livestream Related Device] - An array of the related devices for the role
- List<Property Map>
- An array of the related devices for the role
GetSensorRelationshipsItemLivestreamRelatedDevice
- 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
Package Details
- Repository
- meraki pulumi/pulumi-meraki
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
meraki
Terraform Provider.