1. Packages
  2. Juniper Mist
  3. API Docs
  4. org
  5. getServicepolicies
Juniper Mist v0.0.27 published on Friday, Sep 27, 2024 by Pulumi

junipermist.org.getServicepolicies

Explore with Pulumi AI

junipermist logo
Juniper Mist v0.0.27 published on Friday, Sep 27, 2024 by Pulumi

    This data source provides the list of WAN Assurance Service Policies (Application Policiess). The Service Policies are used in the servicepolicy_policies from the Gateway configuration and Gateway templates.They can be used to manage common policies betweeen 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)
    // Output-based functions aren't available in Java yet
    
    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

    Action string
    enum: allow, deny
    Appqoe Pulumi.JuniperMist.Org.Inputs.GetServicepoliciesOrgServicepolicyAppqoe
    For SRX Only
    CreatedTime double
    Ewfs List<Pulumi.JuniperMist.Org.Inputs.GetServicepoliciesOrgServicepolicyEwf>
    Id string
    Idp Pulumi.JuniperMist.Org.Inputs.GetServicepoliciesOrgServicepolicyIdp
    LocalRouting bool
    access within the same VRF
    ModifiedTime double
    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>
    Tenants List<string>
    Action string
    enum: allow, deny
    Appqoe GetServicepoliciesOrgServicepolicyAppqoe
    For SRX Only
    CreatedTime float64
    Ewfs []GetServicepoliciesOrgServicepolicyEwf
    Id string
    Idp GetServicepoliciesOrgServicepolicyIdp
    LocalRouting bool
    access within the same VRF
    ModifiedTime float64
    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
    Tenants []string
    action String
    enum: allow, deny
    appqoe GetServicepoliciesOrgServicepolicyAppqoe
    For SRX Only
    createdTime Double
    ewfs List<GetServicepoliciesOrgServicepolicyEwf>
    id String
    idp GetServicepoliciesOrgServicepolicyIdp
    localRouting Boolean
    access within the same VRF
    modifiedTime Double
    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>
    tenants List<String>
    action string
    enum: allow, deny
    appqoe GetServicepoliciesOrgServicepolicyAppqoe
    For SRX Only
    createdTime number
    ewfs GetServicepoliciesOrgServicepolicyEwf[]
    id string
    idp GetServicepoliciesOrgServicepolicyIdp
    localRouting boolean
    access within the same VRF
    modifiedTime number
    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[]
    tenants string[]
    action str
    enum: allow, deny
    appqoe GetServicepoliciesOrgServicepolicyAppqoe
    For SRX Only
    created_time float
    ewfs Sequence[GetServicepoliciesOrgServicepolicyEwf]
    id str
    idp GetServicepoliciesOrgServicepolicyIdp
    local_routing bool
    access within the same VRF
    modified_time float
    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]
    tenants Sequence[str]
    action String
    enum: allow, deny
    appqoe Property Map
    For SRX Only
    createdTime Number
    ewfs List<Property Map>
    id String
    idp Property Map
    localRouting Boolean
    access within the same VRF
    modifiedTime Number
    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>
    tenants List<String>

    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
    strict (default) / standard / or keys from from idp_profiles
    AlertOnly bool
    Enabled bool
    IdpprofileId string
    org_level IDP Profile can be used, this takes precedence over profile
    Profile string
    strict (default) / standard / or keys from from idp_profiles
    alertOnly Boolean
    enabled Boolean
    idpprofileId String
    org_level IDP Profile can be used, this takes precedence over profile
    profile String
    strict (default) / standard / or keys from from idp_profiles
    alertOnly boolean
    enabled boolean
    idpprofileId string
    org_level IDP Profile can be used, this takes precedence over profile
    profile string
    strict (default) / standard / or keys from 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
    strict (default) / standard / or keys from from idp_profiles
    alertOnly Boolean
    enabled Boolean
    idpprofileId String
    org_level IDP Profile can be used, this takes precedence over profile
    profile String
    strict (default) / standard / or keys from from idp_profiles

    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.0.27 published on Friday, Sep 27, 2024 by Pulumi