1. Packages
  2. Meraki Provider
  3. API Docs
  4. networks
  5. getSensorRelationships
Cisco Meraki v0.3.2 published on Tuesday, Sep 24, 2024 by Pulumi

meraki.networks.getSensorRelationships

Explore with Pulumi AI

meraki logo
Cisco Meraki v0.3.2 published on Tuesday, Sep 24, 2024 by Pulumi

    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:

    NetworkId string
    networkId path parameter. Network ID
    NetworkId string
    networkId path parameter. Network ID
    networkId String
    networkId path parameter. Network ID
    networkId string
    networkId path parameter. Network ID
    network_id str
    networkId path parameter. Network ID
    networkId 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<GetSensorRelationshipsItem>
    Array of ResponseSensorGetNetworkSensorRelationships
    NetworkId string
    networkId path parameter. Network ID
    Id string
    The provider-assigned unique ID for this managed resource.
    Items []GetSensorRelationshipsItem
    Array of ResponseSensorGetNetworkSensorRelationships
    NetworkId string
    networkId path parameter. Network ID
    id String
    The provider-assigned unique ID for this managed resource.
    items List<GetSensorRelationshipsItem>
    Array of ResponseSensorGetNetworkSensorRelationships
    networkId String
    networkId path parameter. Network ID
    id string
    The provider-assigned unique ID for this managed resource.
    items GetSensorRelationshipsItem[]
    Array of ResponseSensorGetNetworkSensorRelationships
    networkId string
    networkId path parameter. Network ID
    id str
    The provider-assigned unique ID for this managed resource.
    items Sequence[GetSensorRelationshipsItem]
    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
    networkId String
    networkId path parameter. Network ID

    Supporting Types

    GetSensorRelationshipsItem

    Device GetSensorRelationshipsItemDevice
    A sensor or gateway device in the network
    Relationships GetSensorRelationshipsItemRelationships
    An object describing the relationships defined between the device and other devices
    Device GetSensorRelationshipsItemDevice
    A sensor or gateway device in the network
    Relationships GetSensorRelationshipsItemRelationships
    An object describing the relationships defined between the device and other devices
    device GetSensorRelationshipsItemDevice
    A sensor or gateway device in the network
    relationships GetSensorRelationshipsItemRelationships
    An object describing the relationships defined between the device and other devices
    device GetSensorRelationshipsItemDevice
    A sensor or gateway device in the network
    relationships GetSensorRelationshipsItemRelationships
    An object describing the relationships defined between the device and other devices
    device GetSensorRelationshipsItemDevice
    A sensor or gateway device in the network
    relationships GetSensorRelationshipsItemRelationships
    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
    ProductType string
    The product type of the device
    Serial string
    The serial of the device
    Name string
    The name of the device
    ProductType string
    The product type of the device
    Serial string
    The serial of the device
    name String
    The name of the device
    productType String
    The product type of the device
    serial String
    The serial of the device
    name string
    The name of the device
    productType 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
    productType String
    The product type of the device
    serial String
    The serial of the device

    GetSensorRelationshipsItemRelationships

    Livestream GetSensorRelationshipsItemRelationshipsLivestream
    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 GetSensorRelationshipsItemRelationshipsLivestream
    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 GetSensorRelationshipsItemRelationshipsLivestream
    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 GetSensorRelationshipsItemRelationshipsLivestream
    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 GetSensorRelationshipsItemRelationshipsLivestream
    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

    relatedDevices List<Property Map>
    An array of the related devices for the role

    GetSensorRelationshipsItemRelationshipsLivestreamRelatedDevice

    ProductType string
    The product type of the related device
    Serial string
    The serial of the related device
    ProductType string
    The product type of the related device
    Serial string
    The serial of the related device
    productType String
    The product type of the related device
    serial String
    The serial of the related device
    productType 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
    productType 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.
    meraki logo
    Cisco Meraki v0.3.2 published on Tuesday, Sep 24, 2024 by Pulumi