Cisco Meraki v0.2.4 published on Friday, Jun 14, 2024 by Pulumi
meraki.networks.getSensorRelationships
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as meraki from "@pulumi/meraki";
const example = meraki.networks.getSensorRelationships({
networkId: "string",
});
export const merakiNetworksSensorRelationshipsExample = example.then(example => example.items);
import pulumi
import pulumi_meraki as meraki
example = meraki.networks.get_sensor_relationships(network_id="string")
pulumi.export("merakiNetworksSensorRelationshipsExample", example.items)
package main
import (
"github.com/pulumi/pulumi-meraki/sdk/go/meraki/networks"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := networks.GetSensorRelationships(ctx, &networks.GetSensorRelationshipsArgs{
NetworkId: "string",
}, nil)
if err != nil {
return err
}
ctx.Export("merakiNetworksSensorRelationshipsExample", example.Items)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Meraki = Pulumi.Meraki;
return await Deployment.RunAsync(() =>
{
var example = Meraki.Networks.GetSensorRelationships.Invoke(new()
{
NetworkId = "string",
});
return new Dictionary<string, object?>
{
["merakiNetworksSensorRelationshipsExample"] = example.Apply(getSensorRelationshipsResult => getSensorRelationshipsResult.Items),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.meraki.networks.NetworksFunctions;
import com.pulumi.meraki.networks.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 = NetworksFunctions.getSensorRelationships(GetSensorRelationshipsArgs.builder()
.networkId("string")
.build());
ctx.export("merakiNetworksSensorRelationshipsExample", example.applyValue(getSensorRelationshipsResult -> getSensorRelationshipsResult.items()));
}
}
variables:
example:
fn::invoke:
Function: meraki:networks:getSensorRelationships
Arguments:
networkId: string
outputs:
merakiNetworksSensorRelationshipsExample: ${example.items}
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(network_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSensorRelationshipsResult
def get_sensor_relationships_output(network_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSensorRelationshipsResult]
func GetSensorRelationships(ctx *Context, args *GetSensorRelationshipsArgs, opts ...InvokeOption) (*GetSensorRelationshipsResult, error)
func GetSensorRelationshipsOutput(ctx *Context, args *GetSensorRelationshipsOutputArgs, opts ...InvokeOption) GetSensorRelationshipsResultOutput
> Note: This function is named GetSensorRelationships
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:networks/getSensorRelationships:getSensorRelationships
arguments:
# arguments dictionary
The following arguments are supported:
- Network
Id string - networkId path parameter. Network ID
- Network
Id string - networkId path parameter. Network ID
- network
Id String - networkId path parameter. Network ID
- network
Id string - networkId path parameter. Network ID
- network_
id str - networkId path parameter. Network ID
- network
Id String - networkId path parameter. Network ID
getSensorRelationships Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
List<Get
Sensor Relationships Item> - Array of ResponseSensorGetNetworkSensorRelationships
- Network
Id string - networkId path parameter. Network ID
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]Get
Sensor Relationships Item - Array of ResponseSensorGetNetworkSensorRelationships
- Network
Id string - networkId path parameter. Network ID
- id String
- The provider-assigned unique ID for this managed resource.
- items
List<Get
Sensor Relationships Item> - Array of ResponseSensorGetNetworkSensorRelationships
- network
Id String - networkId path parameter. Network ID
- id string
- The provider-assigned unique ID for this managed resource.
- items
Get
Sensor Relationships Item[] - Array of ResponseSensorGetNetworkSensorRelationships
- network
Id string - networkId path parameter. Network ID
- id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[Get
Sensor Relationships Item] - Array of ResponseSensorGetNetworkSensorRelationships
- network_
id str - networkId path parameter. Network ID
- id String
- The provider-assigned unique ID for this managed resource.
- items List<Property Map>
- Array of ResponseSensorGetNetworkSensorRelationships
- network
Id String - networkId path parameter. Network ID
Supporting Types
GetSensorRelationshipsItem
- Device
Get
Sensor Relationships Item Device - A sensor or gateway device in the network
- Relationships
Get
Sensor Relationships Item Relationships - An object describing the relationships defined between the device and other devices
- Device
Get
Sensor Relationships Item Device - A sensor or gateway device in the network
- Relationships
Get
Sensor Relationships Item Relationships - An object describing the relationships defined between the device and other devices
- device
Get
Sensor Relationships Item Device - A sensor or gateway device in the network
- relationships
Get
Sensor Relationships Item Relationships - An object describing the relationships defined between the device and other devices
- device
Get
Sensor Relationships Item Device - A sensor or gateway device in the network
- relationships
Get
Sensor Relationships Item Relationships - An object describing the relationships defined between the device and other devices
- device
Get
Sensor Relationships Item Device - A sensor or gateway device in the network
- relationships
Get
Sensor Relationships Item Relationships - An object describing the relationships defined between the device and other devices
- device Property Map
- A sensor or gateway device in the network
- relationships Property Map
- An object describing the relationships defined between the device and other devices
GetSensorRelationshipsItemDevice
- Name string
- The name of the device
- Product
Type string - The product type of the device
- Serial string
- The serial of the device
- Name string
- The name of the device
- Product
Type string - The product type of the device
- Serial string
- The serial of the device
- name String
- The name of the device
- product
Type String - The product type of the device
- serial String
- The serial of the device
- name string
- The name of the device
- product
Type string - The product type of the device
- serial string
- The serial of the device
- name str
- The name of the device
- product_
type str - The product type of the device
- serial str
- The serial of the device
- name String
- The name of the device
- product
Type String - The product type of the device
- serial String
- The serial of the device
GetSensorRelationshipsItemRelationships
- Livestream
Get
Sensor Relationships Item 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
Get
Sensor Relationships Item 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
Get
Sensor Relationships Item 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
Get
Sensor Relationships Item 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
Get
Sensor Relationships Item 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 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.
GetSensorRelationshipsItemRelationshipsLivestream
- List<Get
Sensor Relationships Item Relationships Livestream Related Device> - An array of the related devices for the role
- []Get
Sensor Relationships Item Relationships Livestream Related Device - An array of the related devices for the role
- List<Get
Sensor Relationships Item Relationships Livestream Related Device> - An array of the related devices for the role
- Get
Sensor Relationships Item Relationships Livestream Related Device[] - An array of the related devices for the role
- Sequence[Get
Sensor Relationships Item 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
GetSensorRelationshipsItemRelationshipsLivestreamRelatedDevice
- 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.