Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi
yandex.getCdnResource
Explore with Pulumi AI
Get information about a Yandex CDN Resource. For more information, see the official documentation.
NOTE: CDN provider must be activated prior usage of CDN resources, either via UI console or via yc cli command:
yc cdn provider activate --folder-id <folder-id> --type gcore
Example Usage
using Pulumi;
using Yandex = Pulumi.Yandex;
class MyStack : Stack
{
public MyStack()
{
var myResource = Output.Create(Yandex.GetCdnResource.InvokeAsync(new Yandex.GetCdnResourceArgs
{
ResourceId = "some resource id",
}));
this.ResourceCname = myResource.Apply(myResource => myResource.Cname);
}
[Output("resourceCname")]
public Output<string> ResourceCname { get; set; }
}
package main
import (
"github.com/pulumi/pulumi-yandex/sdk/go/yandex"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
opt0 := "some resource id"
myResource, err := yandex.LookupCdnResource(ctx, &GetCdnResourceArgs{
ResourceId: &opt0,
}, nil)
if err != nil {
return err
}
ctx.Export("resourceCname", myResource.Cname)
return nil
})
}
Coming soon!
import pulumi
import pulumi_yandex as yandex
my_resource = yandex.get_cdn_resource(resource_id="some resource id")
pulumi.export("resourceCname", my_resource.cname)
import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";
const myResource = pulumi.output(yandex.getCdnResource({
resourceId: "some resource id",
}));
export const resourceCname = myResource.cname!;
Coming soon!
Using getCdnResource
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 getCdnResource(args: GetCdnResourceArgs, opts?: InvokeOptions): Promise<GetCdnResourceResult>
function getCdnResourceOutput(args: GetCdnResourceOutputArgs, opts?: InvokeOptions): Output<GetCdnResourceResult>
def get_cdn_resource(active: Optional[bool] = None,
cname: Optional[str] = None,
options: Optional[GetCdnResourceOptions] = None,
origin_group_id: Optional[int] = None,
origin_group_name: Optional[str] = None,
origin_protocol: Optional[str] = None,
resource_id: Optional[str] = None,
secondary_hostnames: Optional[Sequence[str]] = None,
ssl_certificate: Optional[GetCdnResourceSslCertificate] = None,
updated_at: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCdnResourceResult
def get_cdn_resource_output(active: Optional[pulumi.Input[bool]] = None,
cname: Optional[pulumi.Input[str]] = None,
options: Optional[pulumi.Input[GetCdnResourceOptionsArgs]] = None,
origin_group_id: Optional[pulumi.Input[int]] = None,
origin_group_name: Optional[pulumi.Input[str]] = None,
origin_protocol: Optional[pulumi.Input[str]] = None,
resource_id: Optional[pulumi.Input[str]] = None,
secondary_hostnames: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
ssl_certificate: Optional[pulumi.Input[GetCdnResourceSslCertificateArgs]] = None,
updated_at: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCdnResourceResult]
func LookupCdnResource(ctx *Context, args *LookupCdnResourceArgs, opts ...InvokeOption) (*LookupCdnResourceResult, error)
func LookupCdnResourceOutput(ctx *Context, args *LookupCdnResourceOutputArgs, opts ...InvokeOption) LookupCdnResourceResultOutput
> Note: This function is named LookupCdnResource
in the Go SDK.
public static class GetCdnResource
{
public static Task<GetCdnResourceResult> InvokeAsync(GetCdnResourceArgs args, InvokeOptions? opts = null)
public static Output<GetCdnResourceResult> Invoke(GetCdnResourceInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCdnResourceResult> getCdnResource(GetCdnResourceArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: yandex:index/getCdnResource:getCdnResource
arguments:
# arguments dictionary
The following arguments are supported:
- Active bool
- Flag to create Resource either in active or disabled state. True - the content from CDN is available to clients.
- Cname string
- CDN endpoint CNAME, must be unique among resources.
- Options
Get
Cdn Resource Options - CDN Resource settings and options to tune CDN edge behavior.
- Origin
Group intId - Origin
Group stringName - Origin
Protocol string - Resource
Id string - Secondary
Hostnames List<string> - list of secondary hostname strings.
- Ssl
Certificate GetCdn Resource Ssl Certificate - Updated
At string
- Active bool
- Flag to create Resource either in active or disabled state. True - the content from CDN is available to clients.
- Cname string
- CDN endpoint CNAME, must be unique among resources.
- Options
Get
Cdn Resource Options - CDN Resource settings and options to tune CDN edge behavior.
- Origin
Group intId - Origin
Group stringName - Origin
Protocol string - Resource
Id string - Secondary
Hostnames []string - list of secondary hostname strings.
- Ssl
Certificate GetCdn Resource Ssl Certificate - Updated
At string
- active Boolean
- Flag to create Resource either in active or disabled state. True - the content from CDN is available to clients.
- cname String
- CDN endpoint CNAME, must be unique among resources.
- options
Get
Cdn Resource Options - CDN Resource settings and options to tune CDN edge behavior.
- origin
Group IntegerId - origin
Group StringName - origin
Protocol String - resource
Id String - secondary
Hostnames List<String> - list of secondary hostname strings.
- ssl
Certificate GetCdn Resource Ssl Certificate - updated
At String
- active boolean
- Flag to create Resource either in active or disabled state. True - the content from CDN is available to clients.
- cname string
- CDN endpoint CNAME, must be unique among resources.
- options
Get
Cdn Resource Options - CDN Resource settings and options to tune CDN edge behavior.
- origin
Group numberId - origin
Group stringName - origin
Protocol string - resource
Id string - secondary
Hostnames string[] - list of secondary hostname strings.
- ssl
Certificate GetCdn Resource Ssl Certificate - updated
At string
- active bool
- Flag to create Resource either in active or disabled state. True - the content from CDN is available to clients.
- cname str
- CDN endpoint CNAME, must be unique among resources.
- options
Get
Cdn Resource Options - CDN Resource settings and options to tune CDN edge behavior.
- origin_
group_ intid - origin_
group_ strname - origin_
protocol str - resource_
id str - secondary_
hostnames Sequence[str] - list of secondary hostname strings.
- ssl_
certificate GetCdn Resource Ssl Certificate - updated_
at str
- active Boolean
- Flag to create Resource either in active or disabled state. True - the content from CDN is available to clients.
- cname String
- CDN endpoint CNAME, must be unique among resources.
- options Property Map
- CDN Resource settings and options to tune CDN edge behavior.
- origin
Group NumberId - origin
Group StringName - origin
Protocol String - resource
Id String - secondary
Hostnames List<String> - list of secondary hostname strings.
- ssl
Certificate Property Map - updated
At String
getCdnResource Result
The following output properties are available:
- Cname string
- Created
At string - Folder
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Options
Get
Cdn Resource Options - Resource
Id string - Updated
At string - Active bool
- Origin
Group intId - Origin
Group stringName - Origin
Protocol string - Secondary
Hostnames List<string> - Ssl
Certificate GetCdn Resource Ssl Certificate
- Cname string
- Created
At string - Folder
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Options
Get
Cdn Resource Options - Resource
Id string - Updated
At string - Active bool
- Origin
Group intId - Origin
Group stringName - Origin
Protocol string - Secondary
Hostnames []string - Ssl
Certificate GetCdn Resource Ssl Certificate
- cname String
- created
At String - folder
Id String - id String
- The provider-assigned unique ID for this managed resource.
- options
Get
Cdn Resource Options - resource
Id String - updated
At String - active Boolean
- origin
Group IntegerId - origin
Group StringName - origin
Protocol String - secondary
Hostnames List<String> - ssl
Certificate GetCdn Resource Ssl Certificate
- cname string
- created
At string - folder
Id string - id string
- The provider-assigned unique ID for this managed resource.
- options
Get
Cdn Resource Options - resource
Id string - updated
At string - active boolean
- origin
Group numberId - origin
Group stringName - origin
Protocol string - secondary
Hostnames string[] - ssl
Certificate GetCdn Resource Ssl Certificate
- cname str
- created_
at str - folder_
id str - id str
- The provider-assigned unique ID for this managed resource.
- options
Get
Cdn Resource Options - resource_
id str - updated_
at str - active bool
- origin_
group_ intid - origin_
group_ strname - origin_
protocol str - secondary_
hostnames Sequence[str] - ssl_
certificate GetCdn Resource Ssl Certificate
- cname String
- created
At String - folder
Id String - id String
- The provider-assigned unique ID for this managed resource.
- options Property Map
- resource
Id String - updated
At String - active Boolean
- origin
Group NumberId - origin
Group StringName - origin
Protocol String - secondary
Hostnames List<String> - ssl
Certificate Property Map
Supporting Types
GetCdnResourceOptions
- Allowed
Http List<string>Methods - HTTP methods for your CDN content. By default the following methods are allowed: GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS. In case some methods are not allowed to the user, they will get the 405 (Method Not Allowed) response. If the method is not supported, the user gets the 501 (Not Implemented) response.
- Browser
Cache intSettings - set up a cache period for the end-users browser. Content will be cached due to origin settings. If there are no cache settings on your origin, the content will not be cached. The list of HTTP response codes that can be cached in browsers: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308. Other response codes will not be cached. The default value is 4 days.
- Cache
Http List<string>Headers - list HTTP headers that must be included in responses to clients.
- Cors List<string>
- parameter that lets browsers get access to selected resources from a domain different to a domain from which the request is received.
- Custom
Host stringHeader - custom value for the Host header. Your server must be able to process requests with the chosen header.
- Custom
Server stringName - wildcard additional CNAME. If a resource has a wildcard additional CNAME, you can use your own certificate for content delivery via HTTPS. Read-only.
- Disable
Cache bool - setup a cache status.
- Disable
Proxy boolForce Ranges - disabling proxy force ranges.
- Edge
Cache intSettings - content will be cached according to origin cache settings. The value applies for a response with codes 200, 201, 204, 206, 301, 302, 303, 304, 307, 308 if an origin server does not have caching HTTP headers. Responses with other codes will not be cached.
- Fetched
Compressed bool - option helps you to reduce the bandwidth between origin and CDN servers. Also, content delivery speed becomes higher because of reducing the time for compressing files in a CDN.
- Forward
Host boolHeader - choose the Forward Host header option if is important to send in the request to the Origin the same Host header as was sent in the request to CDN server.
- Gzip
On bool - GZip compression at CDN servers reduces file size by 70% and can be as high as 90%.
- bool
- set for ignoring cookie.
- Ignore
Query boolParams - files with different query parameters are cached as objects with the same key regardless of the parameter value. selected by default.
- Proxy
Cache boolMethods Set - allows caching for GET, HEAD and POST requests.
- Query
Params List<string>Blacklists - files with the specified query parameters are cached as objects with the same key, files with other parameters are cached as objects with different keys.
- Query
Params List<string>Whitelists - files with the specified query parameters are cached as objects with different keys, files with other parameters are cached as objects with the same key.
- Redirect
Http boolTo Https - set up a redirect from HTTPS to HTTP.
- Redirect
Https boolTo Http - set up a redirect from HTTP to HTTPS.
- Slice bool
- files larger than 10 MB will be requested and cached in parts (no larger than 10 MB each part). It reduces time to first byte. The origin must support HTTP Range requests.
- Static
Request List<string>Headers - set up custom headers that CDN servers send in requests to origins.
- Static
Response Dictionary<string, string>Headers
- Allowed
Http []stringMethods - HTTP methods for your CDN content. By default the following methods are allowed: GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS. In case some methods are not allowed to the user, they will get the 405 (Method Not Allowed) response. If the method is not supported, the user gets the 501 (Not Implemented) response.
- Browser
Cache intSettings - set up a cache period for the end-users browser. Content will be cached due to origin settings. If there are no cache settings on your origin, the content will not be cached. The list of HTTP response codes that can be cached in browsers: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308. Other response codes will not be cached. The default value is 4 days.
- Cache
Http []stringHeaders - list HTTP headers that must be included in responses to clients.
- Cors []string
- parameter that lets browsers get access to selected resources from a domain different to a domain from which the request is received.
- Custom
Host stringHeader - custom value for the Host header. Your server must be able to process requests with the chosen header.
- Custom
Server stringName - wildcard additional CNAME. If a resource has a wildcard additional CNAME, you can use your own certificate for content delivery via HTTPS. Read-only.
- Disable
Cache bool - setup a cache status.
- Disable
Proxy boolForce Ranges - disabling proxy force ranges.
- Edge
Cache intSettings - content will be cached according to origin cache settings. The value applies for a response with codes 200, 201, 204, 206, 301, 302, 303, 304, 307, 308 if an origin server does not have caching HTTP headers. Responses with other codes will not be cached.
- Fetched
Compressed bool - option helps you to reduce the bandwidth between origin and CDN servers. Also, content delivery speed becomes higher because of reducing the time for compressing files in a CDN.
- Forward
Host boolHeader - choose the Forward Host header option if is important to send in the request to the Origin the same Host header as was sent in the request to CDN server.
- Gzip
On bool - GZip compression at CDN servers reduces file size by 70% and can be as high as 90%.
- bool
- set for ignoring cookie.
- Ignore
Query boolParams - files with different query parameters are cached as objects with the same key regardless of the parameter value. selected by default.
- Proxy
Cache boolMethods Set - allows caching for GET, HEAD and POST requests.
- Query
Params []stringBlacklists - files with the specified query parameters are cached as objects with the same key, files with other parameters are cached as objects with different keys.
- Query
Params []stringWhitelists - files with the specified query parameters are cached as objects with different keys, files with other parameters are cached as objects with the same key.
- Redirect
Http boolTo Https - set up a redirect from HTTPS to HTTP.
- Redirect
Https boolTo Http - set up a redirect from HTTP to HTTPS.
- Slice bool
- files larger than 10 MB will be requested and cached in parts (no larger than 10 MB each part). It reduces time to first byte. The origin must support HTTP Range requests.
- Static
Request []stringHeaders - set up custom headers that CDN servers send in requests to origins.
- Static
Response map[string]stringHeaders
- allowed
Http List<String>Methods - HTTP methods for your CDN content. By default the following methods are allowed: GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS. In case some methods are not allowed to the user, they will get the 405 (Method Not Allowed) response. If the method is not supported, the user gets the 501 (Not Implemented) response.
- browser
Cache IntegerSettings - set up a cache period for the end-users browser. Content will be cached due to origin settings. If there are no cache settings on your origin, the content will not be cached. The list of HTTP response codes that can be cached in browsers: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308. Other response codes will not be cached. The default value is 4 days.
- cache
Http List<String>Headers - list HTTP headers that must be included in responses to clients.
- cors List<String>
- parameter that lets browsers get access to selected resources from a domain different to a domain from which the request is received.
- custom
Host StringHeader - custom value for the Host header. Your server must be able to process requests with the chosen header.
- custom
Server StringName - wildcard additional CNAME. If a resource has a wildcard additional CNAME, you can use your own certificate for content delivery via HTTPS. Read-only.
- disable
Cache Boolean - setup a cache status.
- disable
Proxy BooleanForce Ranges - disabling proxy force ranges.
- edge
Cache IntegerSettings - content will be cached according to origin cache settings. The value applies for a response with codes 200, 201, 204, 206, 301, 302, 303, 304, 307, 308 if an origin server does not have caching HTTP headers. Responses with other codes will not be cached.
- fetched
Compressed Boolean - option helps you to reduce the bandwidth between origin and CDN servers. Also, content delivery speed becomes higher because of reducing the time for compressing files in a CDN.
- forward
Host BooleanHeader - choose the Forward Host header option if is important to send in the request to the Origin the same Host header as was sent in the request to CDN server.
- gzip
On Boolean - GZip compression at CDN servers reduces file size by 70% and can be as high as 90%.
- Boolean
- set for ignoring cookie.
- ignore
Query BooleanParams - files with different query parameters are cached as objects with the same key regardless of the parameter value. selected by default.
- proxy
Cache BooleanMethods Set - allows caching for GET, HEAD and POST requests.
- query
Params List<String>Blacklists - files with the specified query parameters are cached as objects with the same key, files with other parameters are cached as objects with different keys.
- query
Params List<String>Whitelists - files with the specified query parameters are cached as objects with different keys, files with other parameters are cached as objects with the same key.
- redirect
Http BooleanTo Https - set up a redirect from HTTPS to HTTP.
- redirect
Https BooleanTo Http - set up a redirect from HTTP to HTTPS.
- slice Boolean
- files larger than 10 MB will be requested and cached in parts (no larger than 10 MB each part). It reduces time to first byte. The origin must support HTTP Range requests.
- static
Request List<String>Headers - set up custom headers that CDN servers send in requests to origins.
- static
Response Map<String,String>Headers
- allowed
Http string[]Methods - HTTP methods for your CDN content. By default the following methods are allowed: GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS. In case some methods are not allowed to the user, they will get the 405 (Method Not Allowed) response. If the method is not supported, the user gets the 501 (Not Implemented) response.
- browser
Cache numberSettings - set up a cache period for the end-users browser. Content will be cached due to origin settings. If there are no cache settings on your origin, the content will not be cached. The list of HTTP response codes that can be cached in browsers: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308. Other response codes will not be cached. The default value is 4 days.
- cache
Http string[]Headers - list HTTP headers that must be included in responses to clients.
- cors string[]
- parameter that lets browsers get access to selected resources from a domain different to a domain from which the request is received.
- custom
Host stringHeader - custom value for the Host header. Your server must be able to process requests with the chosen header.
- custom
Server stringName - wildcard additional CNAME. If a resource has a wildcard additional CNAME, you can use your own certificate for content delivery via HTTPS. Read-only.
- disable
Cache boolean - setup a cache status.
- disable
Proxy booleanForce Ranges - disabling proxy force ranges.
- edge
Cache numberSettings - content will be cached according to origin cache settings. The value applies for a response with codes 200, 201, 204, 206, 301, 302, 303, 304, 307, 308 if an origin server does not have caching HTTP headers. Responses with other codes will not be cached.
- fetched
Compressed boolean - option helps you to reduce the bandwidth between origin and CDN servers. Also, content delivery speed becomes higher because of reducing the time for compressing files in a CDN.
- forward
Host booleanHeader - choose the Forward Host header option if is important to send in the request to the Origin the same Host header as was sent in the request to CDN server.
- gzip
On boolean - GZip compression at CDN servers reduces file size by 70% and can be as high as 90%.
- boolean
- set for ignoring cookie.
- ignore
Query booleanParams - files with different query parameters are cached as objects with the same key regardless of the parameter value. selected by default.
- proxy
Cache booleanMethods Set - allows caching for GET, HEAD and POST requests.
- query
Params string[]Blacklists - files with the specified query parameters are cached as objects with the same key, files with other parameters are cached as objects with different keys.
- query
Params string[]Whitelists - files with the specified query parameters are cached as objects with different keys, files with other parameters are cached as objects with the same key.
- redirect
Http booleanTo Https - set up a redirect from HTTPS to HTTP.
- redirect
Https booleanTo Http - set up a redirect from HTTP to HTTPS.
- slice boolean
- files larger than 10 MB will be requested and cached in parts (no larger than 10 MB each part). It reduces time to first byte. The origin must support HTTP Range requests.
- static
Request string[]Headers - set up custom headers that CDN servers send in requests to origins.
- static
Response {[key: string]: string}Headers
- allowed_
http_ Sequence[str]methods - HTTP methods for your CDN content. By default the following methods are allowed: GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS. In case some methods are not allowed to the user, they will get the 405 (Method Not Allowed) response. If the method is not supported, the user gets the 501 (Not Implemented) response.
- browser_
cache_ intsettings - set up a cache period for the end-users browser. Content will be cached due to origin settings. If there are no cache settings on your origin, the content will not be cached. The list of HTTP response codes that can be cached in browsers: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308. Other response codes will not be cached. The default value is 4 days.
- cache_
http_ Sequence[str]headers - list HTTP headers that must be included in responses to clients.
- cors Sequence[str]
- parameter that lets browsers get access to selected resources from a domain different to a domain from which the request is received.
- custom_
host_ strheader - custom value for the Host header. Your server must be able to process requests with the chosen header.
- custom_
server_ strname - wildcard additional CNAME. If a resource has a wildcard additional CNAME, you can use your own certificate for content delivery via HTTPS. Read-only.
- disable_
cache bool - setup a cache status.
- disable_
proxy_ boolforce_ ranges - disabling proxy force ranges.
- edge_
cache_ intsettings - content will be cached according to origin cache settings. The value applies for a response with codes 200, 201, 204, 206, 301, 302, 303, 304, 307, 308 if an origin server does not have caching HTTP headers. Responses with other codes will not be cached.
- fetched_
compressed bool - option helps you to reduce the bandwidth between origin and CDN servers. Also, content delivery speed becomes higher because of reducing the time for compressing files in a CDN.
- forward_
host_ boolheader - choose the Forward Host header option if is important to send in the request to the Origin the same Host header as was sent in the request to CDN server.
- gzip_
on bool - GZip compression at CDN servers reduces file size by 70% and can be as high as 90%.
- bool
- set for ignoring cookie.
- ignore_
query_ boolparams - files with different query parameters are cached as objects with the same key regardless of the parameter value. selected by default.
- proxy_
cache_ boolmethods_ set - allows caching for GET, HEAD and POST requests.
- query_
params_ Sequence[str]blacklists - files with the specified query parameters are cached as objects with the same key, files with other parameters are cached as objects with different keys.
- query_
params_ Sequence[str]whitelists - files with the specified query parameters are cached as objects with different keys, files with other parameters are cached as objects with the same key.
- redirect_
http_ boolto_ https - set up a redirect from HTTPS to HTTP.
- redirect_
https_ boolto_ http - set up a redirect from HTTP to HTTPS.
- slice bool
- files larger than 10 MB will be requested and cached in parts (no larger than 10 MB each part). It reduces time to first byte. The origin must support HTTP Range requests.
- static_
request_ Sequence[str]headers - set up custom headers that CDN servers send in requests to origins.
- static_
response_ Mapping[str, str]headers
- allowed
Http List<String>Methods - HTTP methods for your CDN content. By default the following methods are allowed: GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS. In case some methods are not allowed to the user, they will get the 405 (Method Not Allowed) response. If the method is not supported, the user gets the 501 (Not Implemented) response.
- browser
Cache NumberSettings - set up a cache period for the end-users browser. Content will be cached due to origin settings. If there are no cache settings on your origin, the content will not be cached. The list of HTTP response codes that can be cached in browsers: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308. Other response codes will not be cached. The default value is 4 days.
- cache
Http List<String>Headers - list HTTP headers that must be included in responses to clients.
- cors List<String>
- parameter that lets browsers get access to selected resources from a domain different to a domain from which the request is received.
- custom
Host StringHeader - custom value for the Host header. Your server must be able to process requests with the chosen header.
- custom
Server StringName - wildcard additional CNAME. If a resource has a wildcard additional CNAME, you can use your own certificate for content delivery via HTTPS. Read-only.
- disable
Cache Boolean - setup a cache status.
- disable
Proxy BooleanForce Ranges - disabling proxy force ranges.
- edge
Cache NumberSettings - content will be cached according to origin cache settings. The value applies for a response with codes 200, 201, 204, 206, 301, 302, 303, 304, 307, 308 if an origin server does not have caching HTTP headers. Responses with other codes will not be cached.
- fetched
Compressed Boolean - option helps you to reduce the bandwidth between origin and CDN servers. Also, content delivery speed becomes higher because of reducing the time for compressing files in a CDN.
- forward
Host BooleanHeader - choose the Forward Host header option if is important to send in the request to the Origin the same Host header as was sent in the request to CDN server.
- gzip
On Boolean - GZip compression at CDN servers reduces file size by 70% and can be as high as 90%.
- Boolean
- set for ignoring cookie.
- ignore
Query BooleanParams - files with different query parameters are cached as objects with the same key regardless of the parameter value. selected by default.
- proxy
Cache BooleanMethods Set - allows caching for GET, HEAD and POST requests.
- query
Params List<String>Blacklists - files with the specified query parameters are cached as objects with the same key, files with other parameters are cached as objects with different keys.
- query
Params List<String>Whitelists - files with the specified query parameters are cached as objects with different keys, files with other parameters are cached as objects with the same key.
- redirect
Http BooleanTo Https - set up a redirect from HTTPS to HTTP.
- redirect
Https BooleanTo Http - set up a redirect from HTTP to HTTPS.
- slice Boolean
- files larger than 10 MB will be requested and cached in parts (no larger than 10 MB each part). It reduces time to first byte. The origin must support HTTP Range requests.
- static
Request List<String>Headers - set up custom headers that CDN servers send in requests to origins.
- static
Response Map<String>Headers
GetCdnResourceSslCertificate
- Status string
- Type string
- Certificate
Manager stringId
- Status string
- Type string
- Certificate
Manager stringId
- status String
- type String
- certificate
Manager StringId
- status string
- type string
- certificate
Manager stringId
- status str
- type str
- certificate_
manager_ strid
- status String
- type String
- certificate
Manager StringId
Package Details
- Repository
- Yandex pulumi/pulumi-yandex
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
yandex
Terraform Provider.