1. Packages
  2. Juniper Mist Provider
  3. API Docs
  4. org
  5. getServices
Juniper Mist v0.4.0 published on Wednesday, Apr 16, 2025 by Pulumi

junipermist.org.getServices

Explore with Pulumi AI

junipermist logo
Juniper Mist v0.4.0 published on Wednesday, Apr 16, 2025 by Pulumi

    This data source provides the list of WAN Assurance Services (Applications).

    A Service is used to define a Custom Application that can be used in the service_policies. These Services can be referenced by their name in

    • the Service Policies (mist_org_servicepolicy.services)
    • the Gateway configuration (mist_device_gateway.service_policies.services)
    • the Gateway Templates (mist_org_gatewaytemplate.service_policies.services)
    • the HUB Profiles (mist_org_deviceprofile_gateway.service_policies.services)

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as junipermist from "@pulumi/junipermist";
    
    const services = junipermist.org.getServices({
        orgId: "15fca2ac-b1a6-47cc-9953-cc6906281550",
    });
    
    import pulumi
    import pulumi_junipermist as junipermist
    
    services = junipermist.org.get_services(org_id="15fca2ac-b1a6-47cc-9953-cc6906281550")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-junipermist/sdk/go/junipermist/org"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := org.GetServices(ctx, &org.GetServicesArgs{
    			OrgId: "15fca2ac-b1a6-47cc-9953-cc6906281550",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using JuniperMist = Pulumi.JuniperMist;
    
    return await Deployment.RunAsync(() => 
    {
        var services = JuniperMist.Org.GetServices.Invoke(new()
        {
            OrgId = "15fca2ac-b1a6-47cc-9953-cc6906281550",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.junipermist.org.OrgFunctions;
    import com.pulumi.junipermist.org.inputs.GetServicesArgs;
    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 services = OrgFunctions.getServices(GetServicesArgs.builder()
                .orgId("15fca2ac-b1a6-47cc-9953-cc6906281550")
                .build());
    
        }
    }
    
    variables:
      services:
        fn::invoke:
          function: junipermist:org:getServices
          arguments:
            orgId: 15fca2ac-b1a6-47cc-9953-cc6906281550
    

    Using getServices

    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 getServices(args: GetServicesArgs, opts?: InvokeOptions): Promise<GetServicesResult>
    function getServicesOutput(args: GetServicesOutputArgs, opts?: InvokeOptions): Output<GetServicesResult>
    def get_services(org_id: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetServicesResult
    def get_services_output(org_id: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetServicesResult]
    func GetServices(ctx *Context, args *GetServicesArgs, opts ...InvokeOption) (*GetServicesResult, error)
    func GetServicesOutput(ctx *Context, args *GetServicesOutputArgs, opts ...InvokeOption) GetServicesResultOutput

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

    public static class GetServices 
    {
        public static Task<GetServicesResult> InvokeAsync(GetServicesArgs args, InvokeOptions? opts = null)
        public static Output<GetServicesResult> Invoke(GetServicesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetServicesResult> getServices(GetServicesArgs args, InvokeOptions options)
    public static Output<GetServicesResult> getServices(GetServicesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: junipermist:org/getServices:getServices
      arguments:
        # arguments dictionary

    The following arguments are supported:

    OrgId string
    OrgId string
    orgId String
    orgId string
    org_id str
    orgId String

    getServices Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    OrgId string
    OrgServices List<Pulumi.JuniperMist.Org.Outputs.GetServicesOrgService>
    Id string
    The provider-assigned unique ID for this managed resource.
    OrgId string
    OrgServices []GetServicesOrgService
    id String
    The provider-assigned unique ID for this managed resource.
    orgId String
    orgServices List<GetServicesOrgService>
    id string
    The provider-assigned unique ID for this managed resource.
    orgId string
    orgServices GetServicesOrgService[]
    id str
    The provider-assigned unique ID for this managed resource.
    org_id str
    org_services Sequence[GetServicesOrgService]
    id String
    The provider-assigned unique ID for this managed resource.
    orgId String
    orgServices List<Property Map>

    Supporting Types

    GetServicesOrgService

    Addresses List<string>
    If type==custom, ip subnets (e.g. 10.0.0.0/8)
    AppCategories List<string>
    When type==app_categories, list of application categories are available through List App Category Definitions
    AppSubcategories List<string>
    When type==app_categories, list of application categories are available through List App Sub Category Definitions
    Apps List<string>
    When type==apps, list of applications are available through:

    • List Applications
    • List Gateway Applications
    • /insight/top_app_by-bytes?wired=true
    ClientLimitDown int
    0 means unlimited
    ClientLimitUp int
    0 means unlimited
    CreatedTime double
    When the object has been created, in epoch
    Description string
    Dscp string
    FailoverPolicy string
    enum: non_revertable, none, revertable
    Hostnames List<string>
    If type==custom, web filtering
    Id string
    Unique ID of the object instance in the Mist Organization
    MaxJitter string
    MaxLatency string
    MaxLoss string
    ModifiedTime double
    When the object has been modified for the last time, in epoch
    Name string
    OrgId string
    ServiceLimitDown int
    0 means unlimited
    ServiceLimitUp int
    0 means unlimited
    SleEnabled bool
    Whether to enable measure SLE
    Specs List<Pulumi.JuniperMist.Org.Inputs.GetServicesOrgServiceSpec>
    When type==custom, optional, if it doesn't exist, http and https is assumed
    SsrRelaxedTcpStateEnforcement bool
    TrafficClass string
    when traffic_type==custom. enum: best_effort, high, low, medium
    TrafficType string
    values from List Traffic Types
    Type string
    enum: app_categories, apps, custom, urls
    Urls List<string>
    When type==urls, no need for spec as URL can encode the ports being used
    Addresses []string
    If type==custom, ip subnets (e.g. 10.0.0.0/8)
    AppCategories []string
    When type==app_categories, list of application categories are available through List App Category Definitions
    AppSubcategories []string
    When type==app_categories, list of application categories are available through List App Sub Category Definitions
    Apps []string
    When type==apps, list of applications are available through:

    • List Applications
    • List Gateway Applications
    • /insight/top_app_by-bytes?wired=true
    ClientLimitDown int
    0 means unlimited
    ClientLimitUp int
    0 means unlimited
    CreatedTime float64
    When the object has been created, in epoch
    Description string
    Dscp string
    FailoverPolicy string
    enum: non_revertable, none, revertable
    Hostnames []string
    If type==custom, web filtering
    Id string
    Unique ID of the object instance in the Mist Organization
    MaxJitter string
    MaxLatency string
    MaxLoss string
    ModifiedTime float64
    When the object has been modified for the last time, in epoch
    Name string
    OrgId string
    ServiceLimitDown int
    0 means unlimited
    ServiceLimitUp int
    0 means unlimited
    SleEnabled bool
    Whether to enable measure SLE
    Specs []GetServicesOrgServiceSpec
    When type==custom, optional, if it doesn't exist, http and https is assumed
    SsrRelaxedTcpStateEnforcement bool
    TrafficClass string
    when traffic_type==custom. enum: best_effort, high, low, medium
    TrafficType string
    values from List Traffic Types
    Type string
    enum: app_categories, apps, custom, urls
    Urls []string
    When type==urls, no need for spec as URL can encode the ports being used
    addresses List<String>
    If type==custom, ip subnets (e.g. 10.0.0.0/8)
    appCategories List<String>
    When type==app_categories, list of application categories are available through List App Category Definitions
    appSubcategories List<String>
    When type==app_categories, list of application categories are available through List App Sub Category Definitions
    apps List<String>
    When type==apps, list of applications are available through:

    • List Applications
    • List Gateway Applications
    • /insight/top_app_by-bytes?wired=true
    clientLimitDown Integer
    0 means unlimited
    clientLimitUp Integer
    0 means unlimited
    createdTime Double
    When the object has been created, in epoch
    description String
    dscp String
    failoverPolicy String
    enum: non_revertable, none, revertable
    hostnames List<String>
    If type==custom, web filtering
    id String
    Unique ID of the object instance in the Mist Organization
    maxJitter String
    maxLatency String
    maxLoss String
    modifiedTime Double
    When the object has been modified for the last time, in epoch
    name String
    orgId String
    serviceLimitDown Integer
    0 means unlimited
    serviceLimitUp Integer
    0 means unlimited
    sleEnabled Boolean
    Whether to enable measure SLE
    specs List<GetServicesOrgServiceSpec>
    When type==custom, optional, if it doesn't exist, http and https is assumed
    ssrRelaxedTcpStateEnforcement Boolean
    trafficClass String
    when traffic_type==custom. enum: best_effort, high, low, medium
    trafficType String
    values from List Traffic Types
    type String
    enum: app_categories, apps, custom, urls
    urls List<String>
    When type==urls, no need for spec as URL can encode the ports being used
    addresses string[]
    If type==custom, ip subnets (e.g. 10.0.0.0/8)
    appCategories string[]
    When type==app_categories, list of application categories are available through List App Category Definitions
    appSubcategories string[]
    When type==app_categories, list of application categories are available through List App Sub Category Definitions
    apps string[]
    When type==apps, list of applications are available through:

    • List Applications
    • List Gateway Applications
    • /insight/top_app_by-bytes?wired=true
    clientLimitDown number
    0 means unlimited
    clientLimitUp number
    0 means unlimited
    createdTime number
    When the object has been created, in epoch
    description string
    dscp string
    failoverPolicy string
    enum: non_revertable, none, revertable
    hostnames string[]
    If type==custom, web filtering
    id string
    Unique ID of the object instance in the Mist Organization
    maxJitter string
    maxLatency string
    maxLoss string
    modifiedTime number
    When the object has been modified for the last time, in epoch
    name string
    orgId string
    serviceLimitDown number
    0 means unlimited
    serviceLimitUp number
    0 means unlimited
    sleEnabled boolean
    Whether to enable measure SLE
    specs GetServicesOrgServiceSpec[]
    When type==custom, optional, if it doesn't exist, http and https is assumed
    ssrRelaxedTcpStateEnforcement boolean
    trafficClass string
    when traffic_type==custom. enum: best_effort, high, low, medium
    trafficType string
    values from List Traffic Types
    type string
    enum: app_categories, apps, custom, urls
    urls string[]
    When type==urls, no need for spec as URL can encode the ports being used
    addresses Sequence[str]
    If type==custom, ip subnets (e.g. 10.0.0.0/8)
    app_categories Sequence[str]
    When type==app_categories, list of application categories are available through List App Category Definitions
    app_subcategories Sequence[str]
    When type==app_categories, list of application categories are available through List App Sub Category Definitions
    apps Sequence[str]
    When type==apps, list of applications are available through:

    • List Applications
    • List Gateway Applications
    • /insight/top_app_by-bytes?wired=true
    client_limit_down int
    0 means unlimited
    client_limit_up int
    0 means unlimited
    created_time float
    When the object has been created, in epoch
    description str
    dscp str
    failover_policy str
    enum: non_revertable, none, revertable
    hostnames Sequence[str]
    If type==custom, web filtering
    id str
    Unique ID of the object instance in the Mist Organization
    max_jitter str
    max_latency str
    max_loss str
    modified_time float
    When the object has been modified for the last time, in epoch
    name str
    org_id str
    service_limit_down int
    0 means unlimited
    service_limit_up int
    0 means unlimited
    sle_enabled bool
    Whether to enable measure SLE
    specs Sequence[GetServicesOrgServiceSpec]
    When type==custom, optional, if it doesn't exist, http and https is assumed
    ssr_relaxed_tcp_state_enforcement bool
    traffic_class str
    when traffic_type==custom. enum: best_effort, high, low, medium
    traffic_type str
    values from List Traffic Types
    type str
    enum: app_categories, apps, custom, urls
    urls Sequence[str]
    When type==urls, no need for spec as URL can encode the ports being used
    addresses List<String>
    If type==custom, ip subnets (e.g. 10.0.0.0/8)
    appCategories List<String>
    When type==app_categories, list of application categories are available through List App Category Definitions
    appSubcategories List<String>
    When type==app_categories, list of application categories are available through List App Sub Category Definitions
    apps List<String>
    When type==apps, list of applications are available through:

    • List Applications
    • List Gateway Applications
    • /insight/top_app_by-bytes?wired=true
    clientLimitDown Number
    0 means unlimited
    clientLimitUp Number
    0 means unlimited
    createdTime Number
    When the object has been created, in epoch
    description String
    dscp String
    failoverPolicy String
    enum: non_revertable, none, revertable
    hostnames List<String>
    If type==custom, web filtering
    id String
    Unique ID of the object instance in the Mist Organization
    maxJitter String
    maxLatency String
    maxLoss String
    modifiedTime Number
    When the object has been modified for the last time, in epoch
    name String
    orgId String
    serviceLimitDown Number
    0 means unlimited
    serviceLimitUp Number
    0 means unlimited
    sleEnabled Boolean
    Whether to enable measure SLE
    specs List<Property Map>
    When type==custom, optional, if it doesn't exist, http and https is assumed
    ssrRelaxedTcpStateEnforcement Boolean
    trafficClass String
    when traffic_type==custom. enum: best_effort, high, low, medium
    trafficType String
    values from List Traffic Types
    type String
    enum: app_categories, apps, custom, urls
    urls List<String>
    When type==urls, no need for spec as URL can encode the ports being used

    GetServicesOrgServiceSpec

    PortRange string
    Port number, port range, or variable
    Protocol string
    https/ tcp / udp / icmp / gre / any / :protocol_number, protocol_number is between 1-254
    PortRange string
    Port number, port range, or variable
    Protocol string
    https/ tcp / udp / icmp / gre / any / :protocol_number, protocol_number is between 1-254
    portRange String
    Port number, port range, or variable
    protocol String
    https/ tcp / udp / icmp / gre / any / :protocol_number, protocol_number is between 1-254
    portRange string
    Port number, port range, or variable
    protocol string
    https/ tcp / udp / icmp / gre / any / :protocol_number, protocol_number is between 1-254
    port_range str
    Port number, port range, or variable
    protocol str
    https/ tcp / udp / icmp / gre / any / :protocol_number, protocol_number is between 1-254
    portRange String
    Port number, port range, or variable
    protocol String
    https/ tcp / udp / icmp / gre / any / :protocol_number, protocol_number is between 1-254

    Package Details

    Repository
    junipermist pulumi/pulumi-junipermist
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the mist Terraform Provider.
    junipermist logo
    Juniper Mist v0.4.0 published on Wednesday, Apr 16, 2025 by Pulumi