ibm.Cdn
Explore with Pulumi AI
Create, update, or delete a Content Delivery Networks (CDN) mapping. For more information, about IBM Cloud CDN, see about Content Delivery Networks.
CDN has now deprecated, backend services will no longer available after 28th March 2025. This docs will be removed in coming release.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const testCdn1 = new ibm.Cdn("testCdn1", {
hostname: "www.default.com",
originAddress: "111.111.111.5",
originType: "HOST_SERVER",
vendorName: "akamai",
});
import pulumi
import pulumi_ibm as ibm
test_cdn1 = ibm.Cdn("testCdn1",
hostname="www.default.com",
origin_address="111.111.111.5",
origin_type="HOST_SERVER",
vendor_name="akamai")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.NewCdn(ctx, "testCdn1", &ibm.CdnArgs{
Hostname: pulumi.String("www.default.com"),
OriginAddress: pulumi.String("111.111.111.5"),
OriginType: pulumi.String("HOST_SERVER"),
VendorName: pulumi.String("akamai"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var testCdn1 = new Ibm.Cdn("testCdn1", new()
{
Hostname = "www.default.com",
OriginAddress = "111.111.111.5",
OriginType = "HOST_SERVER",
VendorName = "akamai",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.Cdn;
import com.pulumi.ibm.CdnArgs;
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) {
var testCdn1 = new Cdn("testCdn1", CdnArgs.builder()
.hostname("www.default.com")
.originAddress("111.111.111.5")
.originType("HOST_SERVER")
.vendorName("akamai")
.build());
}
}
resources:
testCdn1:
type: ibm:Cdn
properties:
hostname: www.default.com
originAddress: 111.111.111.5
originType: HOST_SERVER
vendorName: akamai
Create Cdn Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Cdn(name: string, args: CdnArgs, opts?: CustomResourceOptions);
@overload
def Cdn(resource_name: str,
args: CdnArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Cdn(resource_name: str,
opts: Optional[ResourceOptions] = None,
host_name: Optional[str] = None,
origin_address: Optional[str] = None,
http_port: Optional[float] = None,
https_port: Optional[float] = None,
cname: Optional[str] = None,
file_extension: Optional[str] = None,
header: Optional[str] = None,
cdn_id: Optional[str] = None,
bucket_name: Optional[str] = None,
certificate_type: Optional[str] = None,
cache_key_query_rule: Optional[str] = None,
origin_type: Optional[str] = None,
path: Optional[str] = None,
performance_configuration: Optional[str] = None,
protocol: Optional[str] = None,
respect_headers: Optional[bool] = None,
vendor_name: Optional[str] = None)
func NewCdn(ctx *Context, name string, args CdnArgs, opts ...ResourceOption) (*Cdn, error)
public Cdn(string name, CdnArgs args, CustomResourceOptions? opts = null)
type: ibm:Cdn
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CdnArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CdnArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CdnArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CdnArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CdnArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var cdnResource = new Ibm.Cdn("cdnResource", new()
{
HostName = "string",
OriginAddress = "string",
HttpPort = 0,
HttpsPort = 0,
Cname = "string",
FileExtension = "string",
Header = "string",
CdnId = "string",
BucketName = "string",
CertificateType = "string",
CacheKeyQueryRule = "string",
OriginType = "string",
Path = "string",
PerformanceConfiguration = "string",
Protocol = "string",
RespectHeaders = false,
VendorName = "string",
});
example, err := ibm.NewCdn(ctx, "cdnResource", &ibm.CdnArgs{
HostName: pulumi.String("string"),
OriginAddress: pulumi.String("string"),
HttpPort: pulumi.Float64(0),
HttpsPort: pulumi.Float64(0),
Cname: pulumi.String("string"),
FileExtension: pulumi.String("string"),
Header: pulumi.String("string"),
CdnId: pulumi.String("string"),
BucketName: pulumi.String("string"),
CertificateType: pulumi.String("string"),
CacheKeyQueryRule: pulumi.String("string"),
OriginType: pulumi.String("string"),
Path: pulumi.String("string"),
PerformanceConfiguration: pulumi.String("string"),
Protocol: pulumi.String("string"),
RespectHeaders: pulumi.Bool(false),
VendorName: pulumi.String("string"),
})
var cdnResource = new Cdn("cdnResource", CdnArgs.builder()
.hostName("string")
.originAddress("string")
.httpPort(0)
.httpsPort(0)
.cname("string")
.fileExtension("string")
.header("string")
.cdnId("string")
.bucketName("string")
.certificateType("string")
.cacheKeyQueryRule("string")
.originType("string")
.path("string")
.performanceConfiguration("string")
.protocol("string")
.respectHeaders(false)
.vendorName("string")
.build());
cdn_resource = ibm.Cdn("cdnResource",
host_name="string",
origin_address="string",
http_port=0,
https_port=0,
cname="string",
file_extension="string",
header="string",
cdn_id="string",
bucket_name="string",
certificate_type="string",
cache_key_query_rule="string",
origin_type="string",
path="string",
performance_configuration="string",
protocol="string",
respect_headers=False,
vendor_name="string")
const cdnResource = new ibm.Cdn("cdnResource", {
hostName: "string",
originAddress: "string",
httpPort: 0,
httpsPort: 0,
cname: "string",
fileExtension: "string",
header: "string",
cdnId: "string",
bucketName: "string",
certificateType: "string",
cacheKeyQueryRule: "string",
originType: "string",
path: "string",
performanceConfiguration: "string",
protocol: "string",
respectHeaders: false,
vendorName: "string",
});
type: ibm:Cdn
properties:
bucketName: string
cacheKeyQueryRule: string
cdnId: string
certificateType: string
cname: string
fileExtension: string
header: string
hostName: string
httpPort: 0
httpsPort: 0
originAddress: string
originType: string
path: string
performanceConfiguration: string
protocol: string
respectHeaders: false
vendorName: string
Cdn Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Cdn resource accepts the following input properties:
- Host
Name string - The host name that is associated with the CDN domain mapping.
- Origin
Address string - The IP address or hostname for the domain mapping. If origin_type=HOST_SERVER provide the hostname or IP address. If origin_type=OBJECT_STORAGE provide your COS endpoints.
- Bucket
Name string - If
origin_type
is set toOBJECT_STORAGE
, you must provide the name of the bucket to use. - Cache
Key stringQuery Rule - The rule for caching keys. Valid values are include-all - (includes all query arguments), ignore-all - (ignores all query arguments), ignore: space separated query-args - (ignores specific query arguments). The default value is include-all.
- Cdn
Id string - (String) The unique internal identifier of the CDN domain mapping.
- Certificate
Type string - The type of certificate to use. This value is required if
protocol
is set toHTTPS
. Valid values areSHARED_SAN_CERT
orWILDCARD_CERT
. - Cname string
- The CNAME for your CDN.
- File
Extension string - If
origin_type
is set toOBJECT_STORAGE
, you can specify the file extensions that you want to cache. - Header string
- The header for the CDN.
- Http
Port double - The port to be opened up. Default value is 80. This option can be set only if you use
HTTP
orHTTPS
as theprotocol
. - Https
Port double - The HTTPS port. Default value is 0. This option can be set only if you use
HTTP
orHTTPS
as theprotocol
. - Origin
Type string - The type of storage to use. Valid values are
HOST_SERVER
orOBJECT_STORAGE
. - Path string
- The path for the CDN.
- Performance
Configuration string - The performance configuration. Default is
General web delivery
. - Protocol string
- The protocol to use. Default value is
HTTP
. - Respect
Headers bool - If set to true, the TTL settings in the origin override CDN TTL settings.
- Vendor
Name string - Only
akamai
is supported for now.
- Host
Name string - The host name that is associated with the CDN domain mapping.
- Origin
Address string - The IP address or hostname for the domain mapping. If origin_type=HOST_SERVER provide the hostname or IP address. If origin_type=OBJECT_STORAGE provide your COS endpoints.
- Bucket
Name string - If
origin_type
is set toOBJECT_STORAGE
, you must provide the name of the bucket to use. - Cache
Key stringQuery Rule - The rule for caching keys. Valid values are include-all - (includes all query arguments), ignore-all - (ignores all query arguments), ignore: space separated query-args - (ignores specific query arguments). The default value is include-all.
- Cdn
Id string - (String) The unique internal identifier of the CDN domain mapping.
- Certificate
Type string - The type of certificate to use. This value is required if
protocol
is set toHTTPS
. Valid values areSHARED_SAN_CERT
orWILDCARD_CERT
. - Cname string
- The CNAME for your CDN.
- File
Extension string - If
origin_type
is set toOBJECT_STORAGE
, you can specify the file extensions that you want to cache. - Header string
- The header for the CDN.
- Http
Port float64 - The port to be opened up. Default value is 80. This option can be set only if you use
HTTP
orHTTPS
as theprotocol
. - Https
Port float64 - The HTTPS port. Default value is 0. This option can be set only if you use
HTTP
orHTTPS
as theprotocol
. - Origin
Type string - The type of storage to use. Valid values are
HOST_SERVER
orOBJECT_STORAGE
. - Path string
- The path for the CDN.
- Performance
Configuration string - The performance configuration. Default is
General web delivery
. - Protocol string
- The protocol to use. Default value is
HTTP
. - Respect
Headers bool - If set to true, the TTL settings in the origin override CDN TTL settings.
- Vendor
Name string - Only
akamai
is supported for now.
- host
Name String - The host name that is associated with the CDN domain mapping.
- origin
Address String - The IP address or hostname for the domain mapping. If origin_type=HOST_SERVER provide the hostname or IP address. If origin_type=OBJECT_STORAGE provide your COS endpoints.
- bucket
Name String - If
origin_type
is set toOBJECT_STORAGE
, you must provide the name of the bucket to use. - cache
Key StringQuery Rule - The rule for caching keys. Valid values are include-all - (includes all query arguments), ignore-all - (ignores all query arguments), ignore: space separated query-args - (ignores specific query arguments). The default value is include-all.
- cdn
Id String - (String) The unique internal identifier of the CDN domain mapping.
- certificate
Type String - The type of certificate to use. This value is required if
protocol
is set toHTTPS
. Valid values areSHARED_SAN_CERT
orWILDCARD_CERT
. - cname String
- The CNAME for your CDN.
- file
Extension String - If
origin_type
is set toOBJECT_STORAGE
, you can specify the file extensions that you want to cache. - header String
- The header for the CDN.
- http
Port Double - The port to be opened up. Default value is 80. This option can be set only if you use
HTTP
orHTTPS
as theprotocol
. - https
Port Double - The HTTPS port. Default value is 0. This option can be set only if you use
HTTP
orHTTPS
as theprotocol
. - origin
Type String - The type of storage to use. Valid values are
HOST_SERVER
orOBJECT_STORAGE
. - path String
- The path for the CDN.
- performance
Configuration String - The performance configuration. Default is
General web delivery
. - protocol String
- The protocol to use. Default value is
HTTP
. - respect
Headers Boolean - If set to true, the TTL settings in the origin override CDN TTL settings.
- vendor
Name String - Only
akamai
is supported for now.
- host
Name string - The host name that is associated with the CDN domain mapping.
- origin
Address string - The IP address or hostname for the domain mapping. If origin_type=HOST_SERVER provide the hostname or IP address. If origin_type=OBJECT_STORAGE provide your COS endpoints.
- bucket
Name string - If
origin_type
is set toOBJECT_STORAGE
, you must provide the name of the bucket to use. - cache
Key stringQuery Rule - The rule for caching keys. Valid values are include-all - (includes all query arguments), ignore-all - (ignores all query arguments), ignore: space separated query-args - (ignores specific query arguments). The default value is include-all.
- cdn
Id string - (String) The unique internal identifier of the CDN domain mapping.
- certificate
Type string - The type of certificate to use. This value is required if
protocol
is set toHTTPS
. Valid values areSHARED_SAN_CERT
orWILDCARD_CERT
. - cname string
- The CNAME for your CDN.
- file
Extension string - If
origin_type
is set toOBJECT_STORAGE
, you can specify the file extensions that you want to cache. - header string
- The header for the CDN.
- http
Port number - The port to be opened up. Default value is 80. This option can be set only if you use
HTTP
orHTTPS
as theprotocol
. - https
Port number - The HTTPS port. Default value is 0. This option can be set only if you use
HTTP
orHTTPS
as theprotocol
. - origin
Type string - The type of storage to use. Valid values are
HOST_SERVER
orOBJECT_STORAGE
. - path string
- The path for the CDN.
- performance
Configuration string - The performance configuration. Default is
General web delivery
. - protocol string
- The protocol to use. Default value is
HTTP
. - respect
Headers boolean - If set to true, the TTL settings in the origin override CDN TTL settings.
- vendor
Name string - Only
akamai
is supported for now.
- host_
name str - The host name that is associated with the CDN domain mapping.
- origin_
address str - The IP address or hostname for the domain mapping. If origin_type=HOST_SERVER provide the hostname or IP address. If origin_type=OBJECT_STORAGE provide your COS endpoints.
- bucket_
name str - If
origin_type
is set toOBJECT_STORAGE
, you must provide the name of the bucket to use. - cache_
key_ strquery_ rule - The rule for caching keys. Valid values are include-all - (includes all query arguments), ignore-all - (ignores all query arguments), ignore: space separated query-args - (ignores specific query arguments). The default value is include-all.
- cdn_
id str - (String) The unique internal identifier of the CDN domain mapping.
- certificate_
type str - The type of certificate to use. This value is required if
protocol
is set toHTTPS
. Valid values areSHARED_SAN_CERT
orWILDCARD_CERT
. - cname str
- The CNAME for your CDN.
- file_
extension str - If
origin_type
is set toOBJECT_STORAGE
, you can specify the file extensions that you want to cache. - header str
- The header for the CDN.
- http_
port float - The port to be opened up. Default value is 80. This option can be set only if you use
HTTP
orHTTPS
as theprotocol
. - https_
port float - The HTTPS port. Default value is 0. This option can be set only if you use
HTTP
orHTTPS
as theprotocol
. - origin_
type str - The type of storage to use. Valid values are
HOST_SERVER
orOBJECT_STORAGE
. - path str
- The path for the CDN.
- performance_
configuration str - The performance configuration. Default is
General web delivery
. - protocol str
- The protocol to use. Default value is
HTTP
. - respect_
headers bool - If set to true, the TTL settings in the origin override CDN TTL settings.
- vendor_
name str - Only
akamai
is supported for now.
- host
Name String - The host name that is associated with the CDN domain mapping.
- origin
Address String - The IP address or hostname for the domain mapping. If origin_type=HOST_SERVER provide the hostname or IP address. If origin_type=OBJECT_STORAGE provide your COS endpoints.
- bucket
Name String - If
origin_type
is set toOBJECT_STORAGE
, you must provide the name of the bucket to use. - cache
Key StringQuery Rule - The rule for caching keys. Valid values are include-all - (includes all query arguments), ignore-all - (ignores all query arguments), ignore: space separated query-args - (ignores specific query arguments). The default value is include-all.
- cdn
Id String - (String) The unique internal identifier of the CDN domain mapping.
- certificate
Type String - The type of certificate to use. This value is required if
protocol
is set toHTTPS
. Valid values areSHARED_SAN_CERT
orWILDCARD_CERT
. - cname String
- The CNAME for your CDN.
- file
Extension String - If
origin_type
is set toOBJECT_STORAGE
, you can specify the file extensions that you want to cache. - header String
- The header for the CDN.
- http
Port Number - The port to be opened up. Default value is 80. This option can be set only if you use
HTTP
orHTTPS
as theprotocol
. - https
Port Number - The HTTPS port. Default value is 0. This option can be set only if you use
HTTP
orHTTPS
as theprotocol
. - origin
Type String - The type of storage to use. Valid values are
HOST_SERVER
orOBJECT_STORAGE
. - path String
- The path for the CDN.
- performance
Configuration String - The performance configuration. Default is
General web delivery
. - protocol String
- The protocol to use. Default value is
HTTP
. - respect
Headers Boolean - If set to true, the TTL settings in the origin override CDN TTL settings.
- vendor
Name String - Only
akamai
is supported for now.
Outputs
All input properties are implicitly available as output properties. Additionally, the Cdn resource produces the following output properties:
Look up Existing Cdn Resource
Get an existing Cdn resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CdnState, opts?: CustomResourceOptions): Cdn
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bucket_name: Optional[str] = None,
cache_key_query_rule: Optional[str] = None,
cdn_id: Optional[str] = None,
certificate_type: Optional[str] = None,
cname: Optional[str] = None,
file_extension: Optional[str] = None,
header: Optional[str] = None,
host_name: Optional[str] = None,
http_port: Optional[float] = None,
https_port: Optional[float] = None,
origin_address: Optional[str] = None,
origin_type: Optional[str] = None,
path: Optional[str] = None,
performance_configuration: Optional[str] = None,
protocol: Optional[str] = None,
respect_headers: Optional[bool] = None,
status: Optional[str] = None,
vendor_name: Optional[str] = None) -> Cdn
func GetCdn(ctx *Context, name string, id IDInput, state *CdnState, opts ...ResourceOption) (*Cdn, error)
public static Cdn Get(string name, Input<string> id, CdnState? state, CustomResourceOptions? opts = null)
public static Cdn get(String name, Output<String> id, CdnState state, CustomResourceOptions options)
resources: _: type: ibm:Cdn get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Bucket
Name string - If
origin_type
is set toOBJECT_STORAGE
, you must provide the name of the bucket to use. - Cache
Key stringQuery Rule - The rule for caching keys. Valid values are include-all - (includes all query arguments), ignore-all - (ignores all query arguments), ignore: space separated query-args - (ignores specific query arguments). The default value is include-all.
- Cdn
Id string - (String) The unique internal identifier of the CDN domain mapping.
- Certificate
Type string - The type of certificate to use. This value is required if
protocol
is set toHTTPS
. Valid values areSHARED_SAN_CERT
orWILDCARD_CERT
. - Cname string
- The CNAME for your CDN.
- File
Extension string - If
origin_type
is set toOBJECT_STORAGE
, you can specify the file extensions that you want to cache. - Header string
- The header for the CDN.
- Host
Name string - The host name that is associated with the CDN domain mapping.
- Http
Port double - The port to be opened up. Default value is 80. This option can be set only if you use
HTTP
orHTTPS
as theprotocol
. - Https
Port double - The HTTPS port. Default value is 0. This option can be set only if you use
HTTP
orHTTPS
as theprotocol
. - Origin
Address string - The IP address or hostname for the domain mapping. If origin_type=HOST_SERVER provide the hostname or IP address. If origin_type=OBJECT_STORAGE provide your COS endpoints.
- Origin
Type string - The type of storage to use. Valid values are
HOST_SERVER
orOBJECT_STORAGE
. - Path string
- The path for the CDN.
- Performance
Configuration string - The performance configuration. Default is
General web delivery
. - Protocol string
- The protocol to use. Default value is
HTTP
. - Respect
Headers bool - If set to true, the TTL settings in the origin override CDN TTL settings.
- Status string
- (String) The Status of the CDN domain mapping.
- Vendor
Name string - Only
akamai
is supported for now.
- Bucket
Name string - If
origin_type
is set toOBJECT_STORAGE
, you must provide the name of the bucket to use. - Cache
Key stringQuery Rule - The rule for caching keys. Valid values are include-all - (includes all query arguments), ignore-all - (ignores all query arguments), ignore: space separated query-args - (ignores specific query arguments). The default value is include-all.
- Cdn
Id string - (String) The unique internal identifier of the CDN domain mapping.
- Certificate
Type string - The type of certificate to use. This value is required if
protocol
is set toHTTPS
. Valid values areSHARED_SAN_CERT
orWILDCARD_CERT
. - Cname string
- The CNAME for your CDN.
- File
Extension string - If
origin_type
is set toOBJECT_STORAGE
, you can specify the file extensions that you want to cache. - Header string
- The header for the CDN.
- Host
Name string - The host name that is associated with the CDN domain mapping.
- Http
Port float64 - The port to be opened up. Default value is 80. This option can be set only if you use
HTTP
orHTTPS
as theprotocol
. - Https
Port float64 - The HTTPS port. Default value is 0. This option can be set only if you use
HTTP
orHTTPS
as theprotocol
. - Origin
Address string - The IP address or hostname for the domain mapping. If origin_type=HOST_SERVER provide the hostname or IP address. If origin_type=OBJECT_STORAGE provide your COS endpoints.
- Origin
Type string - The type of storage to use. Valid values are
HOST_SERVER
orOBJECT_STORAGE
. - Path string
- The path for the CDN.
- Performance
Configuration string - The performance configuration. Default is
General web delivery
. - Protocol string
- The protocol to use. Default value is
HTTP
. - Respect
Headers bool - If set to true, the TTL settings in the origin override CDN TTL settings.
- Status string
- (String) The Status of the CDN domain mapping.
- Vendor
Name string - Only
akamai
is supported for now.
- bucket
Name String - If
origin_type
is set toOBJECT_STORAGE
, you must provide the name of the bucket to use. - cache
Key StringQuery Rule - The rule for caching keys. Valid values are include-all - (includes all query arguments), ignore-all - (ignores all query arguments), ignore: space separated query-args - (ignores specific query arguments). The default value is include-all.
- cdn
Id String - (String) The unique internal identifier of the CDN domain mapping.
- certificate
Type String - The type of certificate to use. This value is required if
protocol
is set toHTTPS
. Valid values areSHARED_SAN_CERT
orWILDCARD_CERT
. - cname String
- The CNAME for your CDN.
- file
Extension String - If
origin_type
is set toOBJECT_STORAGE
, you can specify the file extensions that you want to cache. - header String
- The header for the CDN.
- host
Name String - The host name that is associated with the CDN domain mapping.
- http
Port Double - The port to be opened up. Default value is 80. This option can be set only if you use
HTTP
orHTTPS
as theprotocol
. - https
Port Double - The HTTPS port. Default value is 0. This option can be set only if you use
HTTP
orHTTPS
as theprotocol
. - origin
Address String - The IP address or hostname for the domain mapping. If origin_type=HOST_SERVER provide the hostname or IP address. If origin_type=OBJECT_STORAGE provide your COS endpoints.
- origin
Type String - The type of storage to use. Valid values are
HOST_SERVER
orOBJECT_STORAGE
. - path String
- The path for the CDN.
- performance
Configuration String - The performance configuration. Default is
General web delivery
. - protocol String
- The protocol to use. Default value is
HTTP
. - respect
Headers Boolean - If set to true, the TTL settings in the origin override CDN TTL settings.
- status String
- (String) The Status of the CDN domain mapping.
- vendor
Name String - Only
akamai
is supported for now.
- bucket
Name string - If
origin_type
is set toOBJECT_STORAGE
, you must provide the name of the bucket to use. - cache
Key stringQuery Rule - The rule for caching keys. Valid values are include-all - (includes all query arguments), ignore-all - (ignores all query arguments), ignore: space separated query-args - (ignores specific query arguments). The default value is include-all.
- cdn
Id string - (String) The unique internal identifier of the CDN domain mapping.
- certificate
Type string - The type of certificate to use. This value is required if
protocol
is set toHTTPS
. Valid values areSHARED_SAN_CERT
orWILDCARD_CERT
. - cname string
- The CNAME for your CDN.
- file
Extension string - If
origin_type
is set toOBJECT_STORAGE
, you can specify the file extensions that you want to cache. - header string
- The header for the CDN.
- host
Name string - The host name that is associated with the CDN domain mapping.
- http
Port number - The port to be opened up. Default value is 80. This option can be set only if you use
HTTP
orHTTPS
as theprotocol
. - https
Port number - The HTTPS port. Default value is 0. This option can be set only if you use
HTTP
orHTTPS
as theprotocol
. - origin
Address string - The IP address or hostname for the domain mapping. If origin_type=HOST_SERVER provide the hostname or IP address. If origin_type=OBJECT_STORAGE provide your COS endpoints.
- origin
Type string - The type of storage to use. Valid values are
HOST_SERVER
orOBJECT_STORAGE
. - path string
- The path for the CDN.
- performance
Configuration string - The performance configuration. Default is
General web delivery
. - protocol string
- The protocol to use. Default value is
HTTP
. - respect
Headers boolean - If set to true, the TTL settings in the origin override CDN TTL settings.
- status string
- (String) The Status of the CDN domain mapping.
- vendor
Name string - Only
akamai
is supported for now.
- bucket_
name str - If
origin_type
is set toOBJECT_STORAGE
, you must provide the name of the bucket to use. - cache_
key_ strquery_ rule - The rule for caching keys. Valid values are include-all - (includes all query arguments), ignore-all - (ignores all query arguments), ignore: space separated query-args - (ignores specific query arguments). The default value is include-all.
- cdn_
id str - (String) The unique internal identifier of the CDN domain mapping.
- certificate_
type str - The type of certificate to use. This value is required if
protocol
is set toHTTPS
. Valid values areSHARED_SAN_CERT
orWILDCARD_CERT
. - cname str
- The CNAME for your CDN.
- file_
extension str - If
origin_type
is set toOBJECT_STORAGE
, you can specify the file extensions that you want to cache. - header str
- The header for the CDN.
- host_
name str - The host name that is associated with the CDN domain mapping.
- http_
port float - The port to be opened up. Default value is 80. This option can be set only if you use
HTTP
orHTTPS
as theprotocol
. - https_
port float - The HTTPS port. Default value is 0. This option can be set only if you use
HTTP
orHTTPS
as theprotocol
. - origin_
address str - The IP address or hostname for the domain mapping. If origin_type=HOST_SERVER provide the hostname or IP address. If origin_type=OBJECT_STORAGE provide your COS endpoints.
- origin_
type str - The type of storage to use. Valid values are
HOST_SERVER
orOBJECT_STORAGE
. - path str
- The path for the CDN.
- performance_
configuration str - The performance configuration. Default is
General web delivery
. - protocol str
- The protocol to use. Default value is
HTTP
. - respect_
headers bool - If set to true, the TTL settings in the origin override CDN TTL settings.
- status str
- (String) The Status of the CDN domain mapping.
- vendor_
name str - Only
akamai
is supported for now.
- bucket
Name String - If
origin_type
is set toOBJECT_STORAGE
, you must provide the name of the bucket to use. - cache
Key StringQuery Rule - The rule for caching keys. Valid values are include-all - (includes all query arguments), ignore-all - (ignores all query arguments), ignore: space separated query-args - (ignores specific query arguments). The default value is include-all.
- cdn
Id String - (String) The unique internal identifier of the CDN domain mapping.
- certificate
Type String - The type of certificate to use. This value is required if
protocol
is set toHTTPS
. Valid values areSHARED_SAN_CERT
orWILDCARD_CERT
. - cname String
- The CNAME for your CDN.
- file
Extension String - If
origin_type
is set toOBJECT_STORAGE
, you can specify the file extensions that you want to cache. - header String
- The header for the CDN.
- host
Name String - The host name that is associated with the CDN domain mapping.
- http
Port Number - The port to be opened up. Default value is 80. This option can be set only if you use
HTTP
orHTTPS
as theprotocol
. - https
Port Number - The HTTPS port. Default value is 0. This option can be set only if you use
HTTP
orHTTPS
as theprotocol
. - origin
Address String - The IP address or hostname for the domain mapping. If origin_type=HOST_SERVER provide the hostname or IP address. If origin_type=OBJECT_STORAGE provide your COS endpoints.
- origin
Type String - The type of storage to use. Valid values are
HOST_SERVER
orOBJECT_STORAGE
. - path String
- The path for the CDN.
- performance
Configuration String - The performance configuration. Default is
General web delivery
. - protocol String
- The protocol to use. Default value is
HTTP
. - respect
Headers Boolean - If set to true, the TTL settings in the origin override CDN TTL settings.
- status String
- (String) The Status of the CDN domain mapping.
- vendor
Name String - Only
akamai
is supported for now.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.