Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.Waa.getAppAccelerationPolicy
Explore with Pulumi AI
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,
});
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"])
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
})
}
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,
});
});
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());
}
}
variables:
testWebAppAccelerationPolicy:
fn::invoke:
Function: oci:Waa:getAppAccelerationPolicy
Arguments:
webAppAccelerationPolicyId: ${testWebAppAccelerationPolicyOciWaaWebAppAccelerationPolicy.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:
- Web
App stringAcceleration Policy Id - The OCID of the WebAppAccelerationPolicy.
- Web
App stringAcceleration Policy Id - The OCID of the WebAppAccelerationPolicy.
- web
App StringAcceleration Policy Id - The OCID of the WebAppAccelerationPolicy.
- web
App stringAcceleration Policy Id - The OCID of the WebAppAccelerationPolicy.
- web_
app_ stracceleration_ policy_ id - The OCID of the WebAppAccelerationPolicy.
- web
App StringAcceleration Policy Id - The OCID of the WebAppAccelerationPolicy.
getAppAccelerationPolicy Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string - WebAppAccelerationPolicy display name, can be renamed.
- 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.
- Lifecycle
Details 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.
- Response
Caching List<GetPolicies App Acceleration Policy Response Caching Policy> - An object that specifies an HTTP response caching policy.
- Response
Compression List<GetPolicies App Acceleration Policy Response Compression Policy> - An object that specifies a compression policy for HTTP response from ENABLEMENT POINT to the client.
- State string
- The current state of the WebAppAccelerationPolicy.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time the WebAppAccelerationPolicy was created. An RFC3339 formatted datetime string.
- Time
Updated string - The time the WebAppAccelerationPolicy was updated. An RFC3339 formatted datetime string.
- Web
App stringAcceleration Policy Id
- Compartment
Id string - The OCID of the compartment.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string - WebAppAccelerationPolicy display name, can be renamed.
- 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.
- Lifecycle
Details 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.
- Response
Caching []GetPolicies App Acceleration Policy Response Caching Policy - An object that specifies an HTTP response caching policy.
- Response
Compression []GetPolicies App Acceleration Policy Response Compression Policy - An object that specifies a compression policy for HTTP response from ENABLEMENT POINT to the client.
- State string
- The current state of the WebAppAccelerationPolicy.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time the WebAppAccelerationPolicy was created. An RFC3339 formatted datetime string.
- Time
Updated string - The time the WebAppAccelerationPolicy was updated. An RFC3339 formatted datetime string.
- Web
App stringAcceleration Policy Id
- compartment
Id String - The OCID of the compartment.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String - WebAppAccelerationPolicy display name, can be renamed.
- 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.
- lifecycle
Details 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.
- response
Caching List<GetPolicies App Acceleration Policy Response Caching Policy> - An object that specifies an HTTP response caching policy.
- response
Compression List<GetPolicies App Acceleration Policy Response Compression Policy> - An object that specifies a compression policy for HTTP response from ENABLEMENT POINT to the client.
- state String
- The current state of the WebAppAccelerationPolicy.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time the WebAppAccelerationPolicy was created. An RFC3339 formatted datetime string.
- time
Updated String - The time the WebAppAccelerationPolicy was updated. An RFC3339 formatted datetime string.
- web
App StringAcceleration Policy Id
- compartment
Id string - The OCID of the compartment.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name string - WebAppAccelerationPolicy display name, can be renamed.
- {[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.
- lifecycle
Details 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.
- response
Caching GetPolicies App Acceleration Policy Response Caching Policy[] - An object that specifies an HTTP response caching policy.
- response
Compression GetPolicies App Acceleration Policy Response Compression Policy[] - An object that specifies a compression policy for HTTP response from ENABLEMENT POINT to the client.
- state string
- The current state of the WebAppAccelerationPolicy.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The time the WebAppAccelerationPolicy was created. An RFC3339 formatted datetime string.
- time
Updated string - The time the WebAppAccelerationPolicy was updated. An RFC3339 formatted datetime string.
- web
App stringAcceleration Policy Id
- compartment_
id str - The OCID of the compartment.
- 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.
- 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_ Sequence[waa.policies Get App Acceleration Policy Response Caching Policy] - An object that specifies an HTTP response caching policy.
- response_
compression_ Sequence[waa.policies Get App Acceleration Policy Response Compression Policy] - An object that specifies a compression policy for HTTP response from ENABLEMENT POINT to the client.
- state str
- The current state of the WebAppAccelerationPolicy.
- 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_ stracceleration_ policy_ id
- compartment
Id String - The OCID of the compartment.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String - WebAppAccelerationPolicy display name, can be renamed.
- 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.
- lifecycle
Details 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.
- response
Caching List<Property Map>Policies - An object that specifies an HTTP response caching policy.
- response
Compression List<Property Map>Policies - An object that specifies a compression policy for HTTP response from ENABLEMENT POINT to the client.
- state String
- The current state of the WebAppAccelerationPolicy.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time the WebAppAccelerationPolicy was created. An RFC3339 formatted datetime string.
- time
Updated String - The time the WebAppAccelerationPolicy was updated. An RFC3339 formatted datetime string.
- web
App StringAcceleration Policy Id
Supporting Types
GetAppAccelerationPolicyResponseCachingPolicy
- Is
Response boolHeader Based Caching Enabled - When false, responses will not be cached by the backend based on response headers.
- Is
Response boolHeader Based Caching Enabled - When false, responses will not be cached by the backend based on response headers.
- is
Response BooleanHeader Based Caching Enabled - When false, responses will not be cached by the backend based on response headers.
- is
Response booleanHeader Based Caching Enabled - When false, responses will not be cached by the backend based on response headers.
- is_
response_ boolheader_ based_ caching_ enabled - When false, responses will not be cached by the backend based on response headers.
- is
Response BooleanHeader Based Caching Enabled - When false, responses will not be cached by the backend based on response headers.
GetAppAccelerationPolicyResponseCompressionPolicy
- Gzip
Compressions List<GetApp Acceleration Policy Response Compression Policy Gzip Compression> - An object that specifies the gzip compression policy.
- Gzip
Compressions []GetApp Acceleration Policy Response Compression Policy Gzip Compression - An object that specifies the gzip compression policy.
- gzip
Compressions List<GetApp Acceleration Policy Response Compression Policy Gzip Compression> - An object that specifies the gzip compression policy.
- gzip
Compressions GetApp Acceleration Policy Response Compression Policy Gzip Compression[] - An object that specifies the gzip compression policy.
- gzip_
compressions Sequence[waa.Get App Acceleration Policy Response Compression Policy Gzip Compression] - An object that specifies the gzip compression policy.
- gzip
Compressions List<Property Map> - An object that specifies the gzip compression policy.
GetAppAccelerationPolicyResponseCompressionPolicyGzipCompression
- 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.
- 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.
- is
Enabled 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 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.
- is
Enabled 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.