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

junipermist.org.getServicepolicies

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 Service Policies (Application Policies).

    The Service Policies can be used in the service_policies object by referencing the Service Policy ID as the servicepolicy_id in:

    • the Gateway configuration (mist_device_gateway.service_policies)
    • the Gateway Templates (mist_org_gatewaytemplate.service_policies)
    • the HUB Profiles (mist_org_deviceprofile_gateway.service_policies) They can be used to manage common policies between multiples configurations

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as junipermist from "@pulumi/junipermist";
    
    const servicepolicies = junipermist.org.getServicepolicies({
        orgId: "15fca2ac-b1a6-47cc-9953-cc6906281550",
    });
    
    import pulumi
    import pulumi_junipermist as junipermist
    
    servicepolicies = junipermist.org.get_servicepolicies(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.GetServicepolicies(ctx, &org.GetServicepoliciesArgs{
    			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 servicepolicies = JuniperMist.Org.GetServicepolicies.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.GetServicepoliciesArgs;
    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 servicepolicies = OrgFunctions.getServicepolicies(GetServicepoliciesArgs.builder()
                .orgId("15fca2ac-b1a6-47cc-9953-cc6906281550")
                .build());
    
        }
    }
    
    variables:
      servicepolicies:
        fn::invoke:
          function: junipermist:org:getServicepolicies
          arguments:
            orgId: 15fca2ac-b1a6-47cc-9953-cc6906281550
    

    Using getServicepolicies

    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 getServicepolicies(args: GetServicepoliciesArgs, opts?: InvokeOptions): Promise<GetServicepoliciesResult>
    function getServicepoliciesOutput(args: GetServicepoliciesOutputArgs, opts?: InvokeOptions): Output<GetServicepoliciesResult>
    def get_servicepolicies(org_id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetServicepoliciesResult
    def get_servicepolicies_output(org_id: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetServicepoliciesResult]
    func GetServicepolicies(ctx *Context, args *GetServicepoliciesArgs, opts ...InvokeOption) (*GetServicepoliciesResult, error)
    func GetServicepoliciesOutput(ctx *Context, args *GetServicepoliciesOutputArgs, opts ...InvokeOption) GetServicepoliciesResultOutput

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

    public static class GetServicepolicies 
    {
        public static Task<GetServicepoliciesResult> InvokeAsync(GetServicepoliciesArgs args, InvokeOptions? opts = null)
        public static Output<GetServicepoliciesResult> Invoke(GetServicepoliciesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetServicepoliciesResult> getServicepolicies(GetServicepoliciesArgs args, InvokeOptions options)
    public static Output<GetServicepoliciesResult> getServicepolicies(GetServicepoliciesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: junipermist:org/getServicepolicies:getServicepolicies
      arguments:
        # arguments dictionary

    The following arguments are supported:

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

    getServicepolicies Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    OrgId string
    OrgServicepolicies List<Pulumi.JuniperMist.Org.Outputs.GetServicepoliciesOrgServicepolicy>
    Id string
    The provider-assigned unique ID for this managed resource.
    OrgId string
    OrgServicepolicies []GetServicepoliciesOrgServicepolicy
    id String
    The provider-assigned unique ID for this managed resource.
    orgId String
    orgServicepolicies List<GetServicepoliciesOrgServicepolicy>
    id string
    The provider-assigned unique ID for this managed resource.
    orgId string
    orgServicepolicies GetServicepoliciesOrgServicepolicy[]
    id str
    The provider-assigned unique ID for this managed resource.
    org_id str
    org_servicepolicies Sequence[GetServicepoliciesOrgServicepolicy]
    id String
    The provider-assigned unique ID for this managed resource.
    orgId String
    orgServicepolicies List<Property Map>

    Supporting Types

    GetServicepoliciesOrgServicepolicy

    Aamw Pulumi.JuniperMist.Org.Inputs.GetServicepoliciesOrgServicepolicyAamw
    For SRX Only
    Action string
    enum: allow, deny
    Antivirus Pulumi.JuniperMist.Org.Inputs.GetServicepoliciesOrgServicepolicyAntivirus
    For SRX-only
    Appqoe Pulumi.JuniperMist.Org.Inputs.GetServicepoliciesOrgServicepolicyAppqoe
    For SRX Only
    CreatedTime double
    When the object has been created, in epoch
    Ewfs List<Pulumi.JuniperMist.Org.Inputs.GetServicepoliciesOrgServicepolicyEwf>
    Id string
    Unique ID of the object instance in the Mist Organization
    Idp Pulumi.JuniperMist.Org.Inputs.GetServicepoliciesOrgServicepolicyIdp
    LocalRouting bool
    access within the same VRF
    ModifiedTime double
    When the object has been modified for the last time, in epoch
    Name string
    OrgId string
    PathPreference string
    By default, we derive all paths available and use them, optionally, you can customize by using path_preference
    Services List<string>
    SslProxy Pulumi.JuniperMist.Org.Inputs.GetServicepoliciesOrgServicepolicySslProxy
    For SRX-only
    Tenants List<string>
    Aamw GetServicepoliciesOrgServicepolicyAamw
    For SRX Only
    Action string
    enum: allow, deny
    Antivirus GetServicepoliciesOrgServicepolicyAntivirus
    For SRX-only
    Appqoe GetServicepoliciesOrgServicepolicyAppqoe
    For SRX Only
    CreatedTime float64
    When the object has been created, in epoch
    Ewfs []GetServicepoliciesOrgServicepolicyEwf
    Id string
    Unique ID of the object instance in the Mist Organization
    Idp GetServicepoliciesOrgServicepolicyIdp
    LocalRouting bool
    access within the same VRF
    ModifiedTime float64
    When the object has been modified for the last time, in epoch
    Name string
    OrgId string
    PathPreference string
    By default, we derive all paths available and use them, optionally, you can customize by using path_preference
    Services []string
    SslProxy GetServicepoliciesOrgServicepolicySslProxy
    For SRX-only
    Tenants []string
    aamw GetServicepoliciesOrgServicepolicyAamw
    For SRX Only
    action String
    enum: allow, deny
    antivirus GetServicepoliciesOrgServicepolicyAntivirus
    For SRX-only
    appqoe GetServicepoliciesOrgServicepolicyAppqoe
    For SRX Only
    createdTime Double
    When the object has been created, in epoch
    ewfs List<GetServicepoliciesOrgServicepolicyEwf>
    id String
    Unique ID of the object instance in the Mist Organization
    idp GetServicepoliciesOrgServicepolicyIdp
    localRouting Boolean
    access within the same VRF
    modifiedTime Double
    When the object has been modified for the last time, in epoch
    name String
    orgId String
    pathPreference String
    By default, we derive all paths available and use them, optionally, you can customize by using path_preference
    services List<String>
    sslProxy GetServicepoliciesOrgServicepolicySslProxy
    For SRX-only
    tenants List<String>
    aamw GetServicepoliciesOrgServicepolicyAamw
    For SRX Only
    action string
    enum: allow, deny
    antivirus GetServicepoliciesOrgServicepolicyAntivirus
    For SRX-only
    appqoe GetServicepoliciesOrgServicepolicyAppqoe
    For SRX Only
    createdTime number
    When the object has been created, in epoch
    ewfs GetServicepoliciesOrgServicepolicyEwf[]
    id string
    Unique ID of the object instance in the Mist Organization
    idp GetServicepoliciesOrgServicepolicyIdp
    localRouting boolean
    access within the same VRF
    modifiedTime number
    When the object has been modified for the last time, in epoch
    name string
    orgId string
    pathPreference string
    By default, we derive all paths available and use them, optionally, you can customize by using path_preference
    services string[]
    sslProxy GetServicepoliciesOrgServicepolicySslProxy
    For SRX-only
    tenants string[]
    aamw GetServicepoliciesOrgServicepolicyAamw
    For SRX Only
    action str
    enum: allow, deny
    antivirus GetServicepoliciesOrgServicepolicyAntivirus
    For SRX-only
    appqoe GetServicepoliciesOrgServicepolicyAppqoe
    For SRX Only
    created_time float
    When the object has been created, in epoch
    ewfs Sequence[GetServicepoliciesOrgServicepolicyEwf]
    id str
    Unique ID of the object instance in the Mist Organization
    idp GetServicepoliciesOrgServicepolicyIdp
    local_routing bool
    access within the same VRF
    modified_time float
    When the object has been modified for the last time, in epoch
    name str
    org_id str
    path_preference str
    By default, we derive all paths available and use them, optionally, you can customize by using path_preference
    services Sequence[str]
    ssl_proxy GetServicepoliciesOrgServicepolicySslProxy
    For SRX-only
    tenants Sequence[str]
    aamw Property Map
    For SRX Only
    action String
    enum: allow, deny
    antivirus Property Map
    For SRX-only
    appqoe Property Map
    For SRX Only
    createdTime Number
    When the object has been created, in epoch
    ewfs List<Property Map>
    id String
    Unique ID of the object instance in the Mist Organization
    idp Property Map
    localRouting Boolean
    access within the same VRF
    modifiedTime Number
    When the object has been modified for the last time, in epoch
    name String
    orgId String
    pathPreference String
    By default, we derive all paths available and use them, optionally, you can customize by using path_preference
    services List<String>
    sslProxy Property Map
    For SRX-only
    tenants List<String>

    GetServicepoliciesOrgServicepolicyAamw

    AamwprofileId string
    org-level Advanced Advance Anti Malware Profile (SkyAtp) Profile can be used, this takes precedence over 'profile'
    Enabled bool
    Profile string
    enum: docsonly, executables, standard
    AamwprofileId string
    org-level Advanced Advance Anti Malware Profile (SkyAtp) Profile can be used, this takes precedence over 'profile'
    Enabled bool
    Profile string
    enum: docsonly, executables, standard
    aamwprofileId String
    org-level Advanced Advance Anti Malware Profile (SkyAtp) Profile can be used, this takes precedence over 'profile'
    enabled Boolean
    profile String
    enum: docsonly, executables, standard
    aamwprofileId string
    org-level Advanced Advance Anti Malware Profile (SkyAtp) Profile can be used, this takes precedence over 'profile'
    enabled boolean
    profile string
    enum: docsonly, executables, standard
    aamwprofile_id str
    org-level Advanced Advance Anti Malware Profile (SkyAtp) Profile can be used, this takes precedence over 'profile'
    enabled bool
    profile str
    enum: docsonly, executables, standard
    aamwprofileId String
    org-level Advanced Advance Anti Malware Profile (SkyAtp) Profile can be used, this takes precedence over 'profile'
    enabled Boolean
    profile String
    enum: docsonly, executables, standard

    GetServicepoliciesOrgServicepolicyAntivirus

    AvprofileId string
    org-level AV Profile can be used, this takes precedence over 'profile'
    Enabled bool
    Profile string
    Default / noftp / httponly / or keys from av_profiles
    AvprofileId string
    org-level AV Profile can be used, this takes precedence over 'profile'
    Enabled bool
    Profile string
    Default / noftp / httponly / or keys from av_profiles
    avprofileId String
    org-level AV Profile can be used, this takes precedence over 'profile'
    enabled Boolean
    profile String
    Default / noftp / httponly / or keys from av_profiles
    avprofileId string
    org-level AV Profile can be used, this takes precedence over 'profile'
    enabled boolean
    profile string
    Default / noftp / httponly / or keys from av_profiles
    avprofile_id str
    org-level AV Profile can be used, this takes precedence over 'profile'
    enabled bool
    profile str
    Default / noftp / httponly / or keys from av_profiles
    avprofileId String
    org-level AV Profile can be used, this takes precedence over 'profile'
    enabled Boolean
    profile String
    Default / noftp / httponly / or keys from av_profiles

    GetServicepoliciesOrgServicepolicyAppqoe

    Enabled bool
    Enabled bool
    enabled Boolean
    enabled boolean
    enabled bool
    enabled Boolean

    GetServicepoliciesOrgServicepolicyEwf

    AlertOnly bool
    BlockMessage string
    Enabled bool
    Profile string
    enum: critical, standard, strict
    AlertOnly bool
    BlockMessage string
    Enabled bool
    Profile string
    enum: critical, standard, strict
    alertOnly Boolean
    blockMessage String
    enabled Boolean
    profile String
    enum: critical, standard, strict
    alertOnly boolean
    blockMessage string
    enabled boolean
    profile string
    enum: critical, standard, strict
    alert_only bool
    block_message str
    enabled bool
    profile str
    enum: critical, standard, strict
    alertOnly Boolean
    blockMessage String
    enabled Boolean
    profile String
    enum: critical, standard, strict

    GetServicepoliciesOrgServicepolicyIdp

    AlertOnly bool
    Enabled bool
    IdpprofileId string
    org_level IDP Profile can be used, this takes precedence over profile
    Profile string
    enum: Custom, strict (default), standard or keys from idp_profiles
    AlertOnly bool
    Enabled bool
    IdpprofileId string
    org_level IDP Profile can be used, this takes precedence over profile
    Profile string
    enum: Custom, strict (default), standard or keys from idp_profiles
    alertOnly Boolean
    enabled Boolean
    idpprofileId String
    org_level IDP Profile can be used, this takes precedence over profile
    profile String
    enum: Custom, strict (default), standard or keys from idp_profiles
    alertOnly boolean
    enabled boolean
    idpprofileId string
    org_level IDP Profile can be used, this takes precedence over profile
    profile string
    enum: Custom, strict (default), standard or keys from idp_profiles
    alert_only bool
    enabled bool
    idpprofile_id str
    org_level IDP Profile can be used, this takes precedence over profile
    profile str
    enum: Custom, strict (default), standard or keys from idp_profiles
    alertOnly Boolean
    enabled Boolean
    idpprofileId String
    org_level IDP Profile can be used, this takes precedence over profile
    profile String
    enum: Custom, strict (default), standard or keys from idp_profiles

    GetServicepoliciesOrgServicepolicySslProxy

    CiphersCategory string
    enum: medium, strong, weak
    Enabled bool
    CiphersCategory string
    enum: medium, strong, weak
    Enabled bool
    ciphersCategory String
    enum: medium, strong, weak
    enabled Boolean
    ciphersCategory string
    enum: medium, strong, weak
    enabled boolean
    ciphers_category str
    enum: medium, strong, weak
    enabled bool
    ciphersCategory String
    enum: medium, strong, weak
    enabled Boolean

    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