1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Waa
  5. getAppAccelerationPolicies
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.Waa.getAppAccelerationPolicies

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

    This data source provides the list of Web App Acceleration Policies in Oracle Cloud Infrastructure Waa service.

    Gets a list of all WebAppAccelerationPolicies in a compartment.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testWebAppAccelerationPolicies = oci.Waa.getAppAccelerationPolicies({
        compartmentId: compartmentId,
        displayName: webAppAccelerationPolicyDisplayName,
        id: webAppAccelerationPolicyId,
        states: webAppAccelerationPolicyState,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_web_app_acceleration_policies = oci.Waa.get_app_acceleration_policies(compartment_id=compartment_id,
        display_name=web_app_acceleration_policy_display_name,
        id=web_app_acceleration_policy_id,
        states=web_app_acceleration_policy_state)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Waa"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Waa.GetAppAccelerationPolicies(ctx, &waa.GetAppAccelerationPoliciesArgs{
    			CompartmentId: compartmentId,
    			DisplayName:   pulumi.StringRef(webAppAccelerationPolicyDisplayName),
    			Id:            pulumi.StringRef(webAppAccelerationPolicyId),
    			States:        webAppAccelerationPolicyState,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testWebAppAccelerationPolicies = Oci.Waa.GetAppAccelerationPolicies.Invoke(new()
        {
            CompartmentId = compartmentId,
            DisplayName = webAppAccelerationPolicyDisplayName,
            Id = webAppAccelerationPolicyId,
            States = webAppAccelerationPolicyState,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Waa.WaaFunctions;
    import com.pulumi.oci.Waa.inputs.GetAppAccelerationPoliciesArgs;
    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 testWebAppAccelerationPolicies = WaaFunctions.getAppAccelerationPolicies(GetAppAccelerationPoliciesArgs.builder()
                .compartmentId(compartmentId)
                .displayName(webAppAccelerationPolicyDisplayName)
                .id(webAppAccelerationPolicyId)
                .states(webAppAccelerationPolicyState)
                .build());
    
        }
    }
    
    variables:
      testWebAppAccelerationPolicies:
        fn::invoke:
          Function: oci:Waa:getAppAccelerationPolicies
          Arguments:
            compartmentId: ${compartmentId}
            displayName: ${webAppAccelerationPolicyDisplayName}
            id: ${webAppAccelerationPolicyId}
            states: ${webAppAccelerationPolicyState}
    

    Using getAppAccelerationPolicies

    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 getAppAccelerationPolicies(args: GetAppAccelerationPoliciesArgs, opts?: InvokeOptions): Promise<GetAppAccelerationPoliciesResult>
    function getAppAccelerationPoliciesOutput(args: GetAppAccelerationPoliciesOutputArgs, opts?: InvokeOptions): Output<GetAppAccelerationPoliciesResult>
    def get_app_acceleration_policies(compartment_id: Optional[str] = None,
                                      display_name: Optional[str] = None,
                                      filters: Optional[Sequence[_waa.GetAppAccelerationPoliciesFilter]] = None,
                                      id: Optional[str] = None,
                                      states: Optional[Sequence[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetAppAccelerationPoliciesResult
    def get_app_acceleration_policies_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                      display_name: Optional[pulumi.Input[str]] = None,
                                      filters: Optional[pulumi.Input[Sequence[pulumi.Input[_waa.GetAppAccelerationPoliciesFilterArgs]]]] = None,
                                      id: Optional[pulumi.Input[str]] = None,
                                      states: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetAppAccelerationPoliciesResult]
    func GetAppAccelerationPolicies(ctx *Context, args *GetAppAccelerationPoliciesArgs, opts ...InvokeOption) (*GetAppAccelerationPoliciesResult, error)
    func GetAppAccelerationPoliciesOutput(ctx *Context, args *GetAppAccelerationPoliciesOutputArgs, opts ...InvokeOption) GetAppAccelerationPoliciesResultOutput

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

    public static class GetAppAccelerationPolicies 
    {
        public static Task<GetAppAccelerationPoliciesResult> InvokeAsync(GetAppAccelerationPoliciesArgs args, InvokeOptions? opts = null)
        public static Output<GetAppAccelerationPoliciesResult> Invoke(GetAppAccelerationPoliciesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAppAccelerationPoliciesResult> getAppAccelerationPolicies(GetAppAccelerationPoliciesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Waa/getAppAccelerationPolicies:getAppAccelerationPolicies
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The OCID of the compartment in which to list resources.
    DisplayName string
    A filter to return only resources that match the entire display name given.
    Filters List<GetAppAccelerationPoliciesFilter>
    Id string
    A filter to return only the WebAppAccelerationPolicy with the given OCID.
    States List<string>
    A filter to return only resources that match the given lifecycleState.
    CompartmentId string
    The OCID of the compartment in which to list resources.
    DisplayName string
    A filter to return only resources that match the entire display name given.
    Filters []GetAppAccelerationPoliciesFilter
    Id string
    A filter to return only the WebAppAccelerationPolicy with the given OCID.
    States []string
    A filter to return only resources that match the given lifecycleState.
    compartmentId String
    The OCID of the compartment in which to list resources.
    displayName String
    A filter to return only resources that match the entire display name given.
    filters List<GetAppAccelerationPoliciesFilter>
    id String
    A filter to return only the WebAppAccelerationPolicy with the given OCID.
    states List<String>
    A filter to return only resources that match the given lifecycleState.
    compartmentId string
    The OCID of the compartment in which to list resources.
    displayName string
    A filter to return only resources that match the entire display name given.
    filters GetAppAccelerationPoliciesFilter[]
    id string
    A filter to return only the WebAppAccelerationPolicy with the given OCID.
    states string[]
    A filter to return only resources that match the given lifecycleState.
    compartment_id str
    The OCID of the compartment in which to list resources.
    display_name str
    A filter to return only resources that match the entire display name given.
    filters Sequence[waa.GetAppAccelerationPoliciesFilter]
    id str
    A filter to return only the WebAppAccelerationPolicy with the given OCID.
    states Sequence[str]
    A filter to return only resources that match the given lifecycleState.
    compartmentId String
    The OCID of the compartment in which to list resources.
    displayName String
    A filter to return only resources that match the entire display name given.
    filters List<Property Map>
    id String
    A filter to return only the WebAppAccelerationPolicy with the given OCID.
    states List<String>
    A filter to return only resources that match the given lifecycleState.

    getAppAccelerationPolicies Result

    The following output properties are available:

    CompartmentId string
    The OCID of the compartment.
    WebAppAccelerationPolicyCollections List<GetAppAccelerationPoliciesWebAppAccelerationPolicyCollection>
    The list of web_app_acceleration_policy_collection.
    DisplayName string
    WebAppAccelerationPolicy display name, can be renamed.
    Filters List<GetAppAccelerationPoliciesFilter>
    Id string
    The OCID of the WebAppAccelerationPolicy.
    States List<string>
    The current state of the WebAppAccelerationPolicy.
    CompartmentId string
    The OCID of the compartment.
    WebAppAccelerationPolicyCollections []GetAppAccelerationPoliciesWebAppAccelerationPolicyCollection
    The list of web_app_acceleration_policy_collection.
    DisplayName string
    WebAppAccelerationPolicy display name, can be renamed.
    Filters []GetAppAccelerationPoliciesFilter
    Id string
    The OCID of the WebAppAccelerationPolicy.
    States []string
    The current state of the WebAppAccelerationPolicy.
    compartmentId String
    The OCID of the compartment.
    webAppAccelerationPolicyCollections List<GetAppAccelerationPoliciesWebAppAccelerationPolicyCollection>
    The list of web_app_acceleration_policy_collection.
    displayName String
    WebAppAccelerationPolicy display name, can be renamed.
    filters List<GetAppAccelerationPoliciesFilter>
    id String
    The OCID of the WebAppAccelerationPolicy.
    states List<String>
    The current state of the WebAppAccelerationPolicy.
    compartmentId string
    The OCID of the compartment.
    webAppAccelerationPolicyCollections GetAppAccelerationPoliciesWebAppAccelerationPolicyCollection[]
    The list of web_app_acceleration_policy_collection.
    displayName string
    WebAppAccelerationPolicy display name, can be renamed.
    filters GetAppAccelerationPoliciesFilter[]
    id string
    The OCID of the WebAppAccelerationPolicy.
    states string[]
    The current state of the WebAppAccelerationPolicy.
    compartment_id str
    The OCID of the compartment.
    web_app_acceleration_policy_collections Sequence[waa.GetAppAccelerationPoliciesWebAppAccelerationPolicyCollection]
    The list of web_app_acceleration_policy_collection.
    display_name str
    WebAppAccelerationPolicy display name, can be renamed.
    filters Sequence[waa.GetAppAccelerationPoliciesFilter]
    id str
    The OCID of the WebAppAccelerationPolicy.
    states Sequence[str]
    The current state of the WebAppAccelerationPolicy.
    compartmentId String
    The OCID of the compartment.
    webAppAccelerationPolicyCollections List<Property Map>
    The list of web_app_acceleration_policy_collection.
    displayName String
    WebAppAccelerationPolicy display name, can be renamed.
    filters List<Property Map>
    id String
    The OCID of the WebAppAccelerationPolicy.
    states List<String>
    The current state of the WebAppAccelerationPolicy.

    Supporting Types

    GetAppAccelerationPoliciesFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetAppAccelerationPoliciesWebAppAccelerationPolicyCollection

    GetAppAccelerationPoliciesWebAppAccelerationPolicyCollectionItem

    CompartmentId string
    The OCID of the compartment in which to list resources.
    DefinedTags Dictionary<string, object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    DisplayName string
    A filter to return only resources that match the entire display name given.
    FreeformTags Dictionary<string, object>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    Id string
    A filter to return only the WebAppAccelerationPolicy with the given OCID.
    LifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in FAILED state.
    ResponseCachingPolicies List<GetAppAccelerationPoliciesWebAppAccelerationPolicyCollectionItemResponseCachingPolicy>
    An object that specifies an HTTP response caching policy.
    ResponseCompressionPolicies List<GetAppAccelerationPoliciesWebAppAccelerationPolicyCollectionItemResponseCompressionPolicy>
    An object that specifies a compression policy for HTTP response from ENABLEMENT POINT to the client.
    State string
    A filter to return only resources that match the given lifecycleState.
    SystemTags Dictionary<string, object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time the WebAppAccelerationPolicy was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The time the WebAppAccelerationPolicy was updated. An RFC3339 formatted datetime string.
    CompartmentId string
    The OCID of the compartment in which to list resources.
    DefinedTags map[string]interface{}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    DisplayName string
    A filter to return only resources that match the entire display name given.
    FreeformTags map[string]interface{}
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    Id string
    A filter to return only the WebAppAccelerationPolicy with the given OCID.
    LifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in FAILED state.
    ResponseCachingPolicies []GetAppAccelerationPoliciesWebAppAccelerationPolicyCollectionItemResponseCachingPolicy
    An object that specifies an HTTP response caching policy.
    ResponseCompressionPolicies []GetAppAccelerationPoliciesWebAppAccelerationPolicyCollectionItemResponseCompressionPolicy
    An object that specifies a compression policy for HTTP response from ENABLEMENT POINT to the client.
    State string
    A filter to return only resources that match the given lifecycleState.
    SystemTags map[string]interface{}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time the WebAppAccelerationPolicy was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The time the WebAppAccelerationPolicy was updated. An RFC3339 formatted datetime string.
    compartmentId String
    The OCID of the compartment in which to list resources.
    definedTags Map<String,Object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName String
    A filter to return only resources that match the entire display name given.
    freeformTags Map<String,Object>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id String
    A filter to return only the WebAppAccelerationPolicy with the given OCID.
    lifecycleDetails String
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in FAILED state.
    responseCachingPolicies List<GetAppAccelerationPoliciesWebAppAccelerationPolicyCollectionItemResponseCachingPolicy>
    An object that specifies an HTTP response caching policy.
    responseCompressionPolicies List<GetAppAccelerationPoliciesWebAppAccelerationPolicyCollectionItemResponseCompressionPolicy>
    An object that specifies a compression policy for HTTP response from ENABLEMENT POINT to the client.
    state String
    A filter to return only resources that match the given lifecycleState.
    systemTags Map<String,Object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time the WebAppAccelerationPolicy was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The time the WebAppAccelerationPolicy was updated. An RFC3339 formatted datetime string.
    compartmentId string
    The OCID of the compartment in which to list resources.
    definedTags {[key: string]: any}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName string
    A filter to return only resources that match the entire display name given.
    freeformTags {[key: string]: any}
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id string
    A filter to return only the WebAppAccelerationPolicy with the given OCID.
    lifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in FAILED state.
    responseCachingPolicies GetAppAccelerationPoliciesWebAppAccelerationPolicyCollectionItemResponseCachingPolicy[]
    An object that specifies an HTTP response caching policy.
    responseCompressionPolicies GetAppAccelerationPoliciesWebAppAccelerationPolicyCollectionItemResponseCompressionPolicy[]
    An object that specifies a compression policy for HTTP response from ENABLEMENT POINT to the client.
    state string
    A filter to return only resources that match the given lifecycleState.
    systemTags {[key: string]: any}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The time the WebAppAccelerationPolicy was created. An RFC3339 formatted datetime string.
    timeUpdated string
    The time the WebAppAccelerationPolicy was updated. An RFC3339 formatted datetime string.
    compartment_id str
    The OCID of the compartment in which to list resources.
    defined_tags Mapping[str, Any]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    display_name str
    A filter to return only resources that match the entire display name given.
    freeform_tags Mapping[str, Any]
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id str
    A filter to return only the WebAppAccelerationPolicy with the given OCID.
    lifecycle_details str
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in FAILED state.
    response_caching_policies Sequence[waa.GetAppAccelerationPoliciesWebAppAccelerationPolicyCollectionItemResponseCachingPolicy]
    An object that specifies an HTTP response caching policy.
    response_compression_policies Sequence[waa.GetAppAccelerationPoliciesWebAppAccelerationPolicyCollectionItemResponseCompressionPolicy]
    An object that specifies a compression policy for HTTP response from ENABLEMENT POINT to the client.
    state str
    A filter to return only resources that match the given lifecycleState.
    system_tags Mapping[str, Any]
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The time the WebAppAccelerationPolicy was created. An RFC3339 formatted datetime string.
    time_updated str
    The time the WebAppAccelerationPolicy was updated. An RFC3339 formatted datetime string.
    compartmentId String
    The OCID of the compartment in which to list resources.
    definedTags Map<Any>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName String
    A filter to return only resources that match the entire display name given.
    freeformTags Map<Any>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id String
    A filter to return only the WebAppAccelerationPolicy with the given OCID.
    lifecycleDetails String
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in FAILED state.
    responseCachingPolicies List<Property Map>
    An object that specifies an HTTP response caching policy.
    responseCompressionPolicies List<Property Map>
    An object that specifies a compression policy for HTTP response from ENABLEMENT POINT to the client.
    state String
    A filter to return only resources that match the given lifecycleState.
    systemTags Map<Any>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time the WebAppAccelerationPolicy was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The time the WebAppAccelerationPolicy was updated. An RFC3339 formatted datetime string.

    GetAppAccelerationPoliciesWebAppAccelerationPolicyCollectionItemResponseCachingPolicy

    IsResponseHeaderBasedCachingEnabled bool
    When false, responses will not be cached by the backend based on response headers.
    IsResponseHeaderBasedCachingEnabled bool
    When false, responses will not be cached by the backend based on response headers.
    isResponseHeaderBasedCachingEnabled Boolean
    When false, responses will not be cached by the backend based on response headers.
    isResponseHeaderBasedCachingEnabled boolean
    When false, responses will not be cached by the backend based on response headers.
    is_response_header_based_caching_enabled bool
    When false, responses will not be cached by the backend based on response headers.
    isResponseHeaderBasedCachingEnabled Boolean
    When false, responses will not be cached by the backend based on response headers.

    GetAppAccelerationPoliciesWebAppAccelerationPolicyCollectionItemResponseCompressionPolicy

    gzipCompressions List<Property Map>
    An object that specifies the gzip compression policy.

    GetAppAccelerationPoliciesWebAppAccelerationPolicyCollectionItemResponseCompressionPolicyGzipCompression

    IsEnabled bool
    When true, support for gzip compression is enabled. HTTP responses will be compressed with gzip only if the client indicates support for gzip via the "Accept-Encoding: gzip" request header.
    IsEnabled bool
    When true, support for gzip compression is enabled. HTTP responses will be compressed with gzip only if the client indicates support for gzip via the "Accept-Encoding: gzip" request header.
    isEnabled Boolean
    When true, support for gzip compression is enabled. HTTP responses will be compressed with gzip only if the client indicates support for gzip via the "Accept-Encoding: gzip" request header.
    isEnabled boolean
    When true, support for gzip compression is enabled. HTTP responses will be compressed with gzip only if the client indicates support for gzip via the "Accept-Encoding: gzip" request header.
    is_enabled bool
    When true, support for gzip compression is enabled. HTTP responses will be compressed with gzip only if the client indicates support for gzip via the "Accept-Encoding: gzip" request header.
    isEnabled Boolean
    When true, support for gzip compression is enabled. HTTP responses will be compressed with gzip only if the client indicates support for gzip via the "Accept-Encoding: gzip" request header.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi