1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. videosurveillance
  5. getSystemGroups
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.videosurveillance.getSystemGroups

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    This data source provides the Video Surveillance System Groups of the current Alibaba Cloud user.

    NOTE: Available in v1.135.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const defaultSystemGroup = new alicloud.videosurveillance.SystemGroup("default", {
        groupName: "groupname",
        inProtocol: "rtmp",
        outProtocol: "flv",
        playDomain: "your_plan_domain",
        pushDomain: "your_push_domain",
    });
    const default = alicloud.videosurveillance.getSystemGroupsOutput({
        ids: [defaultSystemGroup.id],
    });
    export const vsGroup = _default.apply(_default => _default.ids?.[0]);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default_system_group = alicloud.videosurveillance.SystemGroup("default",
        group_name="groupname",
        in_protocol="rtmp",
        out_protocol="flv",
        play_domain="your_plan_domain",
        push_domain="your_push_domain")
    default = alicloud.videosurveillance.get_system_groups_output(ids=[default_system_group.id])
    pulumi.export("vsGroup", default.ids[0])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/videosurveillance"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
    defaultSystemGroup, err := videosurveillance.NewSystemGroup(ctx, "default", &videosurveillance.SystemGroupArgs{
    GroupName: pulumi.String("groupname"),
    InProtocol: pulumi.String("rtmp"),
    OutProtocol: pulumi.String("flv"),
    PlayDomain: pulumi.String("your_plan_domain"),
    PushDomain: pulumi.String("your_push_domain"),
    })
    if err != nil {
    return err
    }
    _default := videosurveillance.GetSystemGroupsOutput(ctx, videosurveillance.GetSystemGroupsOutputArgs{
    Ids: pulumi.StringArray{
    defaultSystemGroup.ID(),
    },
    }, nil);
    ctx.Export("vsGroup", _default.ApplyT(func(_default videosurveillance.GetSystemGroupsResult) (*string, error) {
    return &default.Ids[0], nil
    }).(pulumi.StringPtrOutput))
    return nil
    })
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var defaultSystemGroup = new AliCloud.VideoSurveillance.SystemGroup("default", new()
        {
            GroupName = "groupname",
            InProtocol = "rtmp",
            OutProtocol = "flv",
            PlayDomain = "your_plan_domain",
            PushDomain = "your_push_domain",
        });
    
        var @default = AliCloud.VideoSurveillance.GetSystemGroups.Invoke(new()
        {
            Ids = new[]
            {
                defaultSystemGroup.Id,
            },
        });
    
        return new Dictionary<string, object?>
        {
            ["vsGroup"] = @default.Apply(@default => @default.Apply(getSystemGroupsResult => getSystemGroupsResult.Ids[0])),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.videosurveillance.SystemGroup;
    import com.pulumi.alicloud.videosurveillance.SystemGroupArgs;
    import com.pulumi.alicloud.videosurveillance.VideosurveillanceFunctions;
    import com.pulumi.alicloud.videosurveillance.inputs.GetSystemGroupsArgs;
    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 defaultSystemGroup = new SystemGroup("defaultSystemGroup", SystemGroupArgs.builder()
                .groupName("groupname")
                .inProtocol("rtmp")
                .outProtocol("flv")
                .playDomain("your_plan_domain")
                .pushDomain("your_push_domain")
                .build());
    
            final var default = VideosurveillanceFunctions.getSystemGroups(GetSystemGroupsArgs.builder()
                .ids(defaultSystemGroup.id())
                .build());
    
            ctx.export("vsGroup", default_.applyValue(default_ -> default_.ids()[0]));
        }
    }
    
    resources:
      defaultSystemGroup:
        type: alicloud:videosurveillance:SystemGroup
        name: default
        properties:
          groupName: groupname
          inProtocol: rtmp
          outProtocol: flv
          playDomain: your_plan_domain
          pushDomain: your_push_domain
    variables:
      default:
        fn::invoke:
          Function: alicloud:videosurveillance:getSystemGroups
          Arguments:
            ids:
              - ${defaultSystemGroup.id}
    outputs:
      vsGroup: ${default.ids[0]}
    

    Using getSystemGroups

    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 getSystemGroups(args: GetSystemGroupsArgs, opts?: InvokeOptions): Promise<GetSystemGroupsResult>
    function getSystemGroupsOutput(args: GetSystemGroupsOutputArgs, opts?: InvokeOptions): Output<GetSystemGroupsResult>
    def get_system_groups(ids: Optional[Sequence[str]] = None,
                          in_protocol: Optional[str] = None,
                          name: Optional[str] = None,
                          name_regex: Optional[str] = None,
                          output_file: Optional[str] = None,
                          status: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetSystemGroupsResult
    def get_system_groups_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                          in_protocol: Optional[pulumi.Input[str]] = None,
                          name: Optional[pulumi.Input[str]] = None,
                          name_regex: Optional[pulumi.Input[str]] = None,
                          output_file: Optional[pulumi.Input[str]] = None,
                          status: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetSystemGroupsResult]
    func GetSystemGroups(ctx *Context, args *GetSystemGroupsArgs, opts ...InvokeOption) (*GetSystemGroupsResult, error)
    func GetSystemGroupsOutput(ctx *Context, args *GetSystemGroupsOutputArgs, opts ...InvokeOption) GetSystemGroupsResultOutput

    > Note: This function is named GetSystemGroups in the Go SDK.

    public static class GetSystemGroups 
    {
        public static Task<GetSystemGroupsResult> InvokeAsync(GetSystemGroupsArgs args, InvokeOptions? opts = null)
        public static Output<GetSystemGroupsResult> Invoke(GetSystemGroupsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSystemGroupsResult> getSystemGroups(GetSystemGroupsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:videosurveillance/getSystemGroups:getSystemGroups
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Ids List<string>
    A list of Group IDs.
    InProtocol string
    The use of the access protocol support gb28181, Real Time Messaging Protocol (rtmp). Valid values: gb28181, rtmp.
    Name string
    The name.
    NameRegex string
    A regex string to filter results by Group name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Status string
    The status. Valid values: on,off.
    Ids []string
    A list of Group IDs.
    InProtocol string
    The use of the access protocol support gb28181, Real Time Messaging Protocol (rtmp). Valid values: gb28181, rtmp.
    Name string
    The name.
    NameRegex string
    A regex string to filter results by Group name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Status string
    The status. Valid values: on,off.
    ids List<String>
    A list of Group IDs.
    inProtocol String
    The use of the access protocol support gb28181, Real Time Messaging Protocol (rtmp). Valid values: gb28181, rtmp.
    name String
    The name.
    nameRegex String
    A regex string to filter results by Group name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    status String
    The status. Valid values: on,off.
    ids string[]
    A list of Group IDs.
    inProtocol string
    The use of the access protocol support gb28181, Real Time Messaging Protocol (rtmp). Valid values: gb28181, rtmp.
    name string
    The name.
    nameRegex string
    A regex string to filter results by Group name.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    status string
    The status. Valid values: on,off.
    ids Sequence[str]
    A list of Group IDs.
    in_protocol str
    The use of the access protocol support gb28181, Real Time Messaging Protocol (rtmp). Valid values: gb28181, rtmp.
    name str
    The name.
    name_regex str
    A regex string to filter results by Group name.
    output_file str
    File name where to save data source results (after running pulumi preview).
    status str
    The status. Valid values: on,off.
    ids List<String>
    A list of Group IDs.
    inProtocol String
    The use of the access protocol support gb28181, Real Time Messaging Protocol (rtmp). Valid values: gb28181, rtmp.
    name String
    The name.
    nameRegex String
    A regex string to filter results by Group name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    status String
    The status. Valid values: on,off.

    getSystemGroups Result

    The following output properties are available:

    Groups List<Pulumi.AliCloud.VideoSurveillance.Outputs.GetSystemGroupsGroup>
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    Names List<string>
    InProtocol string
    Name string
    NameRegex string
    OutputFile string
    Status string
    Groups []GetSystemGroupsGroup
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    Names []string
    InProtocol string
    Name string
    NameRegex string
    OutputFile string
    Status string
    groups List<GetSystemGroupsGroup>
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    names List<String>
    inProtocol String
    name String
    nameRegex String
    outputFile String
    status String
    groups GetSystemGroupsGroup[]
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    names string[]
    inProtocol string
    name string
    nameRegex string
    outputFile string
    status string
    groups Sequence[GetSystemGroupsGroup]
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    names Sequence[str]
    in_protocol str
    name str
    name_regex str
    output_file str
    status str
    groups List<Property Map>
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    names List<String>
    inProtocol String
    name String
    nameRegex String
    outputFile String
    status String

    Supporting Types

    GetSystemGroupsGroup

    App string
    The App Name of Group.
    Callback string
    The space within the device status update of the callback, need to start with http:// or https:// at the beginning.
    CreateTime string
    The creation time of the Group.
    Description string
    The description of the Group.
    Enabled bool
    Whether to open Group.
    GbId string
    Space of national standard ID. NOTE: Available only in the national standard access space.
    GbIp string
    Space of national standard signaling server address. NOTE: Available only in the national standard access space.
    GroupId string
    The ID of Group.
    GroupName string
    The name of Group.
    Id string
    The ID of the Group.
    InProtocol string
    The use of the access protocol support gb28181,rtmp(Real Time Messaging Protocol).
    OutProtocol string
    The use of space play Protocol multi-valued separate them with commas (,). Valid values: flv,hls, rtmp(Real Time Messaging Protocol).
    PlayDomain string
    The domain name of plan streaming used by the group.
    PushDomain string
    The domain name of push streaming used by the group.
    Stats List<Pulumi.AliCloud.VideoSurveillance.Inputs.GetSystemGroupsGroupStat>
    The Device statistics of Group.
    App string
    The App Name of Group.
    Callback string
    The space within the device status update of the callback, need to start with http:// or https:// at the beginning.
    CreateTime string
    The creation time of the Group.
    Description string
    The description of the Group.
    Enabled bool
    Whether to open Group.
    GbId string
    Space of national standard ID. NOTE: Available only in the national standard access space.
    GbIp string
    Space of national standard signaling server address. NOTE: Available only in the national standard access space.
    GroupId string
    The ID of Group.
    GroupName string
    The name of Group.
    Id string
    The ID of the Group.
    InProtocol string
    The use of the access protocol support gb28181,rtmp(Real Time Messaging Protocol).
    OutProtocol string
    The use of space play Protocol multi-valued separate them with commas (,). Valid values: flv,hls, rtmp(Real Time Messaging Protocol).
    PlayDomain string
    The domain name of plan streaming used by the group.
    PushDomain string
    The domain name of push streaming used by the group.
    Stats []GetSystemGroupsGroupStat
    The Device statistics of Group.
    app String
    The App Name of Group.
    callback String
    The space within the device status update of the callback, need to start with http:// or https:// at the beginning.
    createTime String
    The creation time of the Group.
    description String
    The description of the Group.
    enabled Boolean
    Whether to open Group.
    gbId String
    Space of national standard ID. NOTE: Available only in the national standard access space.
    gbIp String
    Space of national standard signaling server address. NOTE: Available only in the national standard access space.
    groupId String
    The ID of Group.
    groupName String
    The name of Group.
    id String
    The ID of the Group.
    inProtocol String
    The use of the access protocol support gb28181,rtmp(Real Time Messaging Protocol).
    outProtocol String
    The use of space play Protocol multi-valued separate them with commas (,). Valid values: flv,hls, rtmp(Real Time Messaging Protocol).
    playDomain String
    The domain name of plan streaming used by the group.
    pushDomain String
    The domain name of push streaming used by the group.
    stats List<GetSystemGroupsGroupStat>
    The Device statistics of Group.
    app string
    The App Name of Group.
    callback string
    The space within the device status update of the callback, need to start with http:// or https:// at the beginning.
    createTime string
    The creation time of the Group.
    description string
    The description of the Group.
    enabled boolean
    Whether to open Group.
    gbId string
    Space of national standard ID. NOTE: Available only in the national standard access space.
    gbIp string
    Space of national standard signaling server address. NOTE: Available only in the national standard access space.
    groupId string
    The ID of Group.
    groupName string
    The name of Group.
    id string
    The ID of the Group.
    inProtocol string
    The use of the access protocol support gb28181,rtmp(Real Time Messaging Protocol).
    outProtocol string
    The use of space play Protocol multi-valued separate them with commas (,). Valid values: flv,hls, rtmp(Real Time Messaging Protocol).
    playDomain string
    The domain name of plan streaming used by the group.
    pushDomain string
    The domain name of push streaming used by the group.
    stats GetSystemGroupsGroupStat[]
    The Device statistics of Group.
    app str
    The App Name of Group.
    callback str
    The space within the device status update of the callback, need to start with http:// or https:// at the beginning.
    create_time str
    The creation time of the Group.
    description str
    The description of the Group.
    enabled bool
    Whether to open Group.
    gb_id str
    Space of national standard ID. NOTE: Available only in the national standard access space.
    gb_ip str
    Space of national standard signaling server address. NOTE: Available only in the national standard access space.
    group_id str
    The ID of Group.
    group_name str
    The name of Group.
    id str
    The ID of the Group.
    in_protocol str
    The use of the access protocol support gb28181,rtmp(Real Time Messaging Protocol).
    out_protocol str
    The use of space play Protocol multi-valued separate them with commas (,). Valid values: flv,hls, rtmp(Real Time Messaging Protocol).
    play_domain str
    The domain name of plan streaming used by the group.
    push_domain str
    The domain name of push streaming used by the group.
    stats Sequence[GetSystemGroupsGroupStat]
    The Device statistics of Group.
    app String
    The App Name of Group.
    callback String
    The space within the device status update of the callback, need to start with http:// or https:// at the beginning.
    createTime String
    The creation time of the Group.
    description String
    The description of the Group.
    enabled Boolean
    Whether to open Group.
    gbId String
    Space of national standard ID. NOTE: Available only in the national standard access space.
    gbIp String
    Space of national standard signaling server address. NOTE: Available only in the national standard access space.
    groupId String
    The ID of Group.
    groupName String
    The name of Group.
    id String
    The ID of the Group.
    inProtocol String
    The use of the access protocol support gb28181,rtmp(Real Time Messaging Protocol).
    outProtocol String
    The use of space play Protocol multi-valued separate them with commas (,). Valid values: flv,hls, rtmp(Real Time Messaging Protocol).
    playDomain String
    The domain name of plan streaming used by the group.
    pushDomain String
    The domain name of push streaming used by the group.
    stats List<Property Map>
    The Device statistics of Group.

    GetSystemGroupsGroupStat

    DeviceNum string
    The total number of devices in the group.
    IedNum string
    The total number of smart devices in the group.
    IpcNum string
    The total number of cameras in the group.
    PlatformNum string
    The total number of platforms in the group.
    DeviceNum string
    The total number of devices in the group.
    IedNum string
    The total number of smart devices in the group.
    IpcNum string
    The total number of cameras in the group.
    PlatformNum string
    The total number of platforms in the group.
    deviceNum String
    The total number of devices in the group.
    iedNum String
    The total number of smart devices in the group.
    ipcNum String
    The total number of cameras in the group.
    platformNum String
    The total number of platforms in the group.
    deviceNum string
    The total number of devices in the group.
    iedNum string
    The total number of smart devices in the group.
    ipcNum string
    The total number of cameras in the group.
    platformNum string
    The total number of platforms in the group.
    device_num str
    The total number of devices in the group.
    ied_num str
    The total number of smart devices in the group.
    ipc_num str
    The total number of cameras in the group.
    platform_num str
    The total number of platforms in the group.
    deviceNum String
    The total number of devices in the group.
    iedNum String
    The total number of smart devices in the group.
    ipcNum String
    The total number of cameras in the group.
    platformNum String
    The total number of platforms in the group.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi