1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Waa
  5. getAppAccelerationPolicy
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.Waa.getAppAccelerationPolicy

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

This data source provides details about a specific Web App Acceleration Policy resource in Oracle Cloud Infrastructure Waa service.

Gets a WebAppAccelerationPolicy with the given OCID.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testWebAppAccelerationPolicy = oci.Waa.getAppAccelerationPolicy({
    webAppAccelerationPolicyId: testWebAppAccelerationPolicyOciWaaWebAppAccelerationPolicy.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_web_app_acceleration_policy = oci.Waa.get_app_acceleration_policy(web_app_acceleration_policy_id=test_web_app_acceleration_policy_oci_waa_web_app_acceleration_policy["id"])
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/waa"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := waa.GetAppAccelerationPolicy(ctx, &waa.GetAppAccelerationPolicyArgs{
			WebAppAccelerationPolicyId: testWebAppAccelerationPolicyOciWaaWebAppAccelerationPolicy.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testWebAppAccelerationPolicy = Oci.Waa.GetAppAccelerationPolicy.Invoke(new()
    {
        WebAppAccelerationPolicyId = testWebAppAccelerationPolicyOciWaaWebAppAccelerationPolicy.Id,
    });

});
Copy
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.GetAppAccelerationPolicyArgs;
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 testWebAppAccelerationPolicy = WaaFunctions.getAppAccelerationPolicy(GetAppAccelerationPolicyArgs.builder()
            .webAppAccelerationPolicyId(testWebAppAccelerationPolicyOciWaaWebAppAccelerationPolicy.id())
            .build());

    }
}
Copy
variables:
  testWebAppAccelerationPolicy:
    fn::invoke:
      function: oci:Waa:getAppAccelerationPolicy
      arguments:
        webAppAccelerationPolicyId: ${testWebAppAccelerationPolicyOciWaaWebAppAccelerationPolicy.id}
Copy

Using getAppAccelerationPolicy

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 getAppAccelerationPolicy(args: GetAppAccelerationPolicyArgs, opts?: InvokeOptions): Promise<GetAppAccelerationPolicyResult>
function getAppAccelerationPolicyOutput(args: GetAppAccelerationPolicyOutputArgs, opts?: InvokeOptions): Output<GetAppAccelerationPolicyResult>
Copy
def get_app_acceleration_policy(web_app_acceleration_policy_id: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetAppAccelerationPolicyResult
def get_app_acceleration_policy_output(web_app_acceleration_policy_id: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetAppAccelerationPolicyResult]
Copy
func GetAppAccelerationPolicy(ctx *Context, args *GetAppAccelerationPolicyArgs, opts ...InvokeOption) (*GetAppAccelerationPolicyResult, error)
func GetAppAccelerationPolicyOutput(ctx *Context, args *GetAppAccelerationPolicyOutputArgs, opts ...InvokeOption) GetAppAccelerationPolicyResultOutput
Copy

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

public static class GetAppAccelerationPolicy 
{
    public static Task<GetAppAccelerationPolicyResult> InvokeAsync(GetAppAccelerationPolicyArgs args, InvokeOptions? opts = null)
    public static Output<GetAppAccelerationPolicyResult> Invoke(GetAppAccelerationPolicyInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetAppAccelerationPolicyResult> getAppAccelerationPolicy(GetAppAccelerationPolicyArgs args, InvokeOptions options)
public static Output<GetAppAccelerationPolicyResult> getAppAccelerationPolicy(GetAppAccelerationPolicyArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Waa/getAppAccelerationPolicy:getAppAccelerationPolicy
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

WebAppAccelerationPolicyId This property is required. string
The OCID of the WebAppAccelerationPolicy.
WebAppAccelerationPolicyId This property is required. string
The OCID of the WebAppAccelerationPolicy.
webAppAccelerationPolicyId This property is required. String
The OCID of the WebAppAccelerationPolicy.
webAppAccelerationPolicyId This property is required. string
The OCID of the WebAppAccelerationPolicy.
web_app_acceleration_policy_id This property is required. str
The OCID of the WebAppAccelerationPolicy.
webAppAccelerationPolicyId This property is required. String
The OCID of the WebAppAccelerationPolicy.

getAppAccelerationPolicy Result

The following output properties are available:

CompartmentId string
The OCID of the compartment.
DefinedTags Dictionary<string, string>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
DisplayName string
WebAppAccelerationPolicy display name, can be renamed.
FreeformTags Dictionary<string, string>
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
The OCID of the WebAppAccelerationPolicy.
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<GetAppAccelerationPolicyResponseCachingPolicy>
An object that specifies an HTTP response caching policy.
ResponseCompressionPolicies List<GetAppAccelerationPolicyResponseCompressionPolicy>
An object that specifies a compression policy for HTTP response from ENABLEMENT POINT to the client.
State string
The current state of the WebAppAccelerationPolicy.
SystemTags Dictionary<string, string>
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.
WebAppAccelerationPolicyId string
CompartmentId string
The OCID of the compartment.
DefinedTags map[string]string
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
DisplayName string
WebAppAccelerationPolicy display name, can be renamed.
FreeformTags map[string]string
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
The OCID of the WebAppAccelerationPolicy.
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 []GetAppAccelerationPolicyResponseCachingPolicy
An object that specifies an HTTP response caching policy.
ResponseCompressionPolicies []GetAppAccelerationPolicyResponseCompressionPolicy
An object that specifies a compression policy for HTTP response from ENABLEMENT POINT to the client.
State string
The current state of the WebAppAccelerationPolicy.
SystemTags map[string]string
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.
WebAppAccelerationPolicyId string
compartmentId String
The OCID of the compartment.
definedTags Map<String,String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
displayName String
WebAppAccelerationPolicy display name, can be renamed.
freeformTags Map<String,String>
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
The OCID of the WebAppAccelerationPolicy.
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<GetAppAccelerationPolicyResponseCachingPolicy>
An object that specifies an HTTP response caching policy.
responseCompressionPolicies List<GetAppAccelerationPolicyResponseCompressionPolicy>
An object that specifies a compression policy for HTTP response from ENABLEMENT POINT to the client.
state String
The current state of the WebAppAccelerationPolicy.
systemTags Map<String,String>
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.
webAppAccelerationPolicyId String
compartmentId string
The OCID of the compartment.
definedTags {[key: string]: string}
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
displayName string
WebAppAccelerationPolicy display name, can be renamed.
freeformTags {[key: string]: string}
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
The OCID of the WebAppAccelerationPolicy.
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 GetAppAccelerationPolicyResponseCachingPolicy[]
An object that specifies an HTTP response caching policy.
responseCompressionPolicies GetAppAccelerationPolicyResponseCompressionPolicy[]
An object that specifies a compression policy for HTTP response from ENABLEMENT POINT to the client.
state string
The current state of the WebAppAccelerationPolicy.
systemTags {[key: string]: string}
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.
webAppAccelerationPolicyId string
compartment_id str
The OCID of the compartment.
defined_tags Mapping[str, str]
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
display_name str
WebAppAccelerationPolicy display name, can be renamed.
freeform_tags Mapping[str, str]
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
The OCID of the WebAppAccelerationPolicy.
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.GetAppAccelerationPolicyResponseCachingPolicy]
An object that specifies an HTTP response caching policy.
response_compression_policies Sequence[waa.GetAppAccelerationPolicyResponseCompressionPolicy]
An object that specifies a compression policy for HTTP response from ENABLEMENT POINT to the client.
state str
The current state of the WebAppAccelerationPolicy.
system_tags Mapping[str, str]
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.
web_app_acceleration_policy_id str
compartmentId String
The OCID of the compartment.
definedTags Map<String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
displayName String
WebAppAccelerationPolicy display name, can be renamed.
freeformTags Map<String>
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
The OCID of the WebAppAccelerationPolicy.
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
The current state of the WebAppAccelerationPolicy.
systemTags Map<String>
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.
webAppAccelerationPolicyId String

Supporting Types

GetAppAccelerationPolicyResponseCachingPolicy

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

GetAppAccelerationPolicyResponseCompressionPolicy

GzipCompressions This property is required. List<GetAppAccelerationPolicyResponseCompressionPolicyGzipCompression>
An object that specifies the gzip compression policy.
GzipCompressions This property is required. []GetAppAccelerationPolicyResponseCompressionPolicyGzipCompression
An object that specifies the gzip compression policy.
gzipCompressions This property is required. List<GetAppAccelerationPolicyResponseCompressionPolicyGzipCompression>
An object that specifies the gzip compression policy.
gzipCompressions This property is required. GetAppAccelerationPolicyResponseCompressionPolicyGzipCompression[]
An object that specifies the gzip compression policy.
gzip_compressions This property is required. Sequence[waa.GetAppAccelerationPolicyResponseCompressionPolicyGzipCompression]
An object that specifies the gzip compression policy.
gzipCompressions This property is required. List<Property Map>
An object that specifies the gzip compression policy.

GetAppAccelerationPolicyResponseCompressionPolicyGzipCompression

IsEnabled This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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.
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi