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 * 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!;
import pulumi
import pulumi_yandex as yandex
my_resource = yandex.get_cdn_resource(resource_id="some resource id")
pulumi.export("resourceCname", my_resource.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)
public static Output<GetCdnResourceResult> getCdnResource(GetCdnResourceArgs args, InvokeOptions options)
fn::invoke:
  function: yandex:index/getCdnResource:getCdnResource
  arguments:
    # arguments dictionaryThe 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
GetCdn Resource Options 
- CDN Resource settings and options to tune CDN edge behavior.
- OriginGroup intId 
- OriginGroup stringName 
- OriginProtocol string
- ResourceId string
- SecondaryHostnames List<string>
- list of secondary hostname strings.
- SslCertificate GetCdn Resource Ssl Certificate 
- UpdatedAt 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
GetCdn Resource Options 
- CDN Resource settings and options to tune CDN edge behavior.
- OriginGroup intId 
- OriginGroup stringName 
- OriginProtocol string
- ResourceId string
- SecondaryHostnames []string
- list of secondary hostname strings.
- SslCertificate GetCdn Resource Ssl Certificate 
- UpdatedAt 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
GetCdn Resource Options 
- CDN Resource settings and options to tune CDN edge behavior.
- originGroup IntegerId 
- originGroup StringName 
- originProtocol String
- resourceId String
- secondaryHostnames List<String>
- list of secondary hostname strings.
- sslCertificate GetCdn Resource Ssl Certificate 
- updatedAt 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
GetCdn Resource Options 
- CDN Resource settings and options to tune CDN edge behavior.
- originGroup numberId 
- originGroup stringName 
- originProtocol string
- resourceId string
- secondaryHostnames string[]
- list of secondary hostname strings.
- sslCertificate GetCdn Resource Ssl Certificate 
- updatedAt 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
GetCdn 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.
- originGroup NumberId 
- originGroup StringName 
- originProtocol String
- resourceId String
- secondaryHostnames List<String>
- list of secondary hostname strings.
- sslCertificate Property Map
- updatedAt String
getCdnResource Result
The following output properties are available:
- Cname string
- CreatedAt string
- FolderId string
- Id string
- The provider-assigned unique ID for this managed resource.
- Options
GetCdn Resource Options 
- ResourceId string
- UpdatedAt string
- Active bool
- OriginGroup intId 
- OriginGroup stringName 
- OriginProtocol string
- SecondaryHostnames List<string>
- SslCertificate GetCdn Resource Ssl Certificate 
- Cname string
- CreatedAt string
- FolderId string
- Id string
- The provider-assigned unique ID for this managed resource.
- Options
GetCdn Resource Options 
- ResourceId string
- UpdatedAt string
- Active bool
- OriginGroup intId 
- OriginGroup stringName 
- OriginProtocol string
- SecondaryHostnames []string
- SslCertificate GetCdn Resource Ssl Certificate 
- cname String
- createdAt String
- folderId String
- id String
- The provider-assigned unique ID for this managed resource.
- options
GetCdn Resource Options 
- resourceId String
- updatedAt String
- active Boolean
- originGroup IntegerId 
- originGroup StringName 
- originProtocol String
- secondaryHostnames List<String>
- sslCertificate GetCdn Resource Ssl Certificate 
- cname string
- createdAt string
- folderId string
- id string
- The provider-assigned unique ID for this managed resource.
- options
GetCdn Resource Options 
- resourceId string
- updatedAt string
- active boolean
- originGroup numberId 
- originGroup stringName 
- originProtocol string
- secondaryHostnames string[]
- sslCertificate GetCdn Resource Ssl Certificate 
- cname str
- created_at str
- folder_id str
- id str
- The provider-assigned unique ID for this managed resource.
- options
GetCdn 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
- createdAt String
- folderId String
- id String
- The provider-assigned unique ID for this managed resource.
- options Property Map
- resourceId String
- updatedAt String
- active Boolean
- originGroup NumberId 
- originGroup StringName 
- originProtocol String
- secondaryHostnames List<String>
- sslCertificate Property Map
Supporting Types
GetCdnResourceOptions   
- AllowedHttp 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.
- BrowserCache 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.
- CacheHttp 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.
- CustomHost stringHeader 
- custom value for the Host header. Your server must be able to process requests with the chosen header.
- CustomServer 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.
- DisableCache bool
- setup a cache status.
- DisableProxy boolForce Ranges 
- disabling proxy force ranges.
- EdgeCache 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.
- FetchedCompressed 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.
- ForwardHost 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.
- GzipOn bool
- GZip compression at CDN servers reduces file size by 70% and can be as high as 90%.
- bool
- set for ignoring cookie.
- IgnoreQuery boolParams 
- files with different query parameters are cached as objects with the same key regardless of the parameter value. selected by default.
- ProxyCache boolMethods Set 
- allows caching for GET, HEAD and POST requests.
- QueryParams 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.
- QueryParams 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.
- RedirectHttp boolTo Https 
- set up a redirect from HTTPS to HTTP.
- RedirectHttps 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.
- StaticRequest List<string>Headers 
- set up custom headers that CDN servers send in requests to origins.
- StaticResponse Dictionary<string, string>Headers 
- AllowedHttp []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.
- BrowserCache 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.
- CacheHttp []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.
- CustomHost stringHeader 
- custom value for the Host header. Your server must be able to process requests with the chosen header.
- CustomServer 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.
- DisableCache bool
- setup a cache status.
- DisableProxy boolForce Ranges 
- disabling proxy force ranges.
- EdgeCache 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.
- FetchedCompressed 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.
- ForwardHost 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.
- GzipOn bool
- GZip compression at CDN servers reduces file size by 70% and can be as high as 90%.
- bool
- set for ignoring cookie.
- IgnoreQuery boolParams 
- files with different query parameters are cached as objects with the same key regardless of the parameter value. selected by default.
- ProxyCache boolMethods Set 
- allows caching for GET, HEAD and POST requests.
- QueryParams []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.
- QueryParams []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.
- RedirectHttp boolTo Https 
- set up a redirect from HTTPS to HTTP.
- RedirectHttps 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.
- StaticRequest []stringHeaders 
- set up custom headers that CDN servers send in requests to origins.
- StaticResponse map[string]stringHeaders 
- allowedHttp 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.
- browserCache 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.
- cacheHttp 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.
- customHost StringHeader 
- custom value for the Host header. Your server must be able to process requests with the chosen header.
- customServer 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.
- disableCache Boolean
- setup a cache status.
- disableProxy BooleanForce Ranges 
- disabling proxy force ranges.
- edgeCache 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.
- fetchedCompressed 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.
- forwardHost 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.
- gzipOn Boolean
- GZip compression at CDN servers reduces file size by 70% and can be as high as 90%.
- Boolean
- set for ignoring cookie.
- ignoreQuery BooleanParams 
- files with different query parameters are cached as objects with the same key regardless of the parameter value. selected by default.
- proxyCache BooleanMethods Set 
- allows caching for GET, HEAD and POST requests.
- queryParams 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.
- queryParams 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.
- redirectHttp BooleanTo Https 
- set up a redirect from HTTPS to HTTP.
- redirectHttps 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.
- staticRequest List<String>Headers 
- set up custom headers that CDN servers send in requests to origins.
- staticResponse Map<String,String>Headers 
- allowedHttp 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.
- browserCache 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.
- cacheHttp 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.
- customHost stringHeader 
- custom value for the Host header. Your server must be able to process requests with the chosen header.
- customServer 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.
- disableCache boolean
- setup a cache status.
- disableProxy booleanForce Ranges 
- disabling proxy force ranges.
- edgeCache 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.
- fetchedCompressed 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.
- forwardHost 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.
- gzipOn boolean
- GZip compression at CDN servers reduces file size by 70% and can be as high as 90%.
- boolean
- set for ignoring cookie.
- ignoreQuery booleanParams 
- files with different query parameters are cached as objects with the same key regardless of the parameter value. selected by default.
- proxyCache booleanMethods Set 
- allows caching for GET, HEAD and POST requests.
- queryParams 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.
- queryParams 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.
- redirectHttp booleanTo Https 
- set up a redirect from HTTPS to HTTP.
- redirectHttps 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.
- staticRequest string[]Headers 
- set up custom headers that CDN servers send in requests to origins.
- staticResponse {[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 
- allowedHttp 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.
- browserCache 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.
- cacheHttp 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.
- customHost StringHeader 
- custom value for the Host header. Your server must be able to process requests with the chosen header.
- customServer 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.
- disableCache Boolean
- setup a cache status.
- disableProxy BooleanForce Ranges 
- disabling proxy force ranges.
- edgeCache 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.
- fetchedCompressed 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.
- forwardHost 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.
- gzipOn Boolean
- GZip compression at CDN servers reduces file size by 70% and can be as high as 90%.
- Boolean
- set for ignoring cookie.
- ignoreQuery BooleanParams 
- files with different query parameters are cached as objects with the same key regardless of the parameter value. selected by default.
- proxyCache BooleanMethods Set 
- allows caching for GET, HEAD and POST requests.
- queryParams 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.
- queryParams 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.
- redirectHttp BooleanTo Https 
- set up a redirect from HTTPS to HTTP.
- redirectHttps 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.
- staticRequest List<String>Headers 
- set up custom headers that CDN servers send in requests to origins.
- staticResponse Map<String>Headers 
GetCdnResourceSslCertificate    
- Status string
- Type string
- CertificateManager stringId 
- Status string
- Type string
- CertificateManager stringId 
- status String
- type String
- certificateManager StringId 
- status string
- type string
- certificateManager stringId 
- status str
- type str
- certificate_manager_ strid 
- status String
- type String
- certificateManager StringId 
Package Details
- Repository
- Yandex pulumi/pulumi-yandex
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the yandexTerraform Provider.