1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Waa
  5. getAppAccelerationPolicy
Oracle Cloud Infrastructure v1.10.0 published on Thursday, Sep 7, 2023 by Pulumi

oci.Waa.getAppAccelerationPolicy

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.10.0 published on Thursday, Sep 7, 2023 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

    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 = oci_waa_web_app_acceleration_policy.Test_web_app_acceleration_policy.Id,
        });
    
    });
    
    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.GetAppAccelerationPolicy(ctx, &waa.GetAppAccelerationPolicyArgs{
    			WebAppAccelerationPolicyId: oci_waa_web_app_acceleration_policy.Test_web_app_acceleration_policy.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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(oci_waa_web_app_acceleration_policy.test_web_app_acceleration_policy().id())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_oci as oci
    
    test_web_app_acceleration_policy = oci.Waa.get_app_acceleration_policy(web_app_acceleration_policy_id=oci_waa_web_app_acceleration_policy["test_web_app_acceleration_policy"]["id"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testWebAppAccelerationPolicy = oci.Waa.getAppAccelerationPolicy({
        webAppAccelerationPolicyId: oci_waa_web_app_acceleration_policy.test_web_app_acceleration_policy.id,
    });
    
    variables:
      testWebAppAccelerationPolicy:
        fn::invoke:
          Function: oci:Waa:getAppAccelerationPolicy
          Arguments:
            webAppAccelerationPolicyId: ${oci_waa_web_app_acceleration_policy.test_web_app_acceleration_policy.id}
    

    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>
    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]
    func GetAppAccelerationPolicy(ctx *Context, args *GetAppAccelerationPolicyArgs, opts ...InvokeOption) (*GetAppAccelerationPolicyResult, error)
    func GetAppAccelerationPolicyOutput(ctx *Context, args *GetAppAccelerationPolicyOutputArgs, opts ...InvokeOption) GetAppAccelerationPolicyResultOutput

    > 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)
    }
    public static CompletableFuture<GetAppAccelerationPolicyResult> getAppAccelerationPolicy(GetAppAccelerationPolicyArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Waa/getAppAccelerationPolicy:getAppAccelerationPolicy
      arguments:
        # arguments dictionary

    The following arguments are supported:

    WebAppAccelerationPolicyId string

    The OCID of the WebAppAccelerationPolicy.

    WebAppAccelerationPolicyId string

    The OCID of the WebAppAccelerationPolicy.

    webAppAccelerationPolicyId String

    The OCID of the WebAppAccelerationPolicy.

    webAppAccelerationPolicyId string

    The OCID of the WebAppAccelerationPolicy.

    web_app_acceleration_policy_id str

    The OCID of the WebAppAccelerationPolicy.

    webAppAccelerationPolicyId String

    The OCID of the WebAppAccelerationPolicy.

    getAppAccelerationPolicy Result

    The following output properties are available:

    CompartmentId string

    The OCID of the compartment.

    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

    WebAppAccelerationPolicy display name, can be renamed.

    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

    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, 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.

    WebAppAccelerationPolicyId string
    CompartmentId string

    The OCID of the compartment.

    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

    WebAppAccelerationPolicy display name, can be renamed.

    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

    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]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.

    WebAppAccelerationPolicyId string
    compartmentId String

    The OCID of the compartment.

    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

    WebAppAccelerationPolicy display name, can be renamed.

    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

    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,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.

    webAppAccelerationPolicyId String
    compartmentId string

    The OCID of the compartment.

    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

    WebAppAccelerationPolicy display name, can be renamed.

    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

    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]: 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.

    webAppAccelerationPolicyId string
    compartment_id str

    The OCID of the compartment.

    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

    WebAppAccelerationPolicy display name, can be renamed.

    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

    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 GetAppAccelerationPolicyResponseCachingPolicy]

    An object that specifies an HTTP response caching policy.

    response_compression_policies 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, 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.

    web_app_acceleration_policy_id str
    compartmentId String

    The OCID of the compartment.

    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

    WebAppAccelerationPolicy display name, can be renamed.

    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

    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<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.

    webAppAccelerationPolicyId String

    Supporting Types

    GetAppAccelerationPolicyResponseCachingPolicy

    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.

    GetAppAccelerationPolicyResponseCompressionPolicy

    gzipCompressions List<Property Map>

    An object that specifies the gzip compression policy.

    GetAppAccelerationPolicyResponseCompressionPolicyGzipCompression

    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.10.0 published on Thursday, Sep 7, 2023 by Pulumi