1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. CdnUrlPush
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

tencentcloud.CdnUrlPush

Explore with Pulumi AI

Provide a resource to invoke a Url Push request.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const foo = new tencentcloud.CdnUrlPush("foo", {urls: ["https://www.example.com/b"]});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

foo = tencentcloud.CdnUrlPush("foo", urls=["https://www.example.com/b"])
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := tencentcloud.NewCdnUrlPush(ctx, "foo", &tencentcloud.CdnUrlPushArgs{
			Urls: pulumi.StringArray{
				pulumi.String("https://www.example.com/b"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var foo = new Tencentcloud.CdnUrlPush("foo", new()
    {
        Urls = new[]
        {
            "https://www.example.com/b",
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CdnUrlPush;
import com.pulumi.tencentcloud.CdnUrlPushArgs;
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 foo = new CdnUrlPush("foo", CdnUrlPushArgs.builder()
            .urls("https://www.example.com/b")
            .build());

    }
}
Copy
resources:
  foo:
    type: tencentcloud:CdnUrlPush
    properties:
      urls:
        - https://www.example.com/b
Copy

argument to request new push task with same urls

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const foo = new tencentcloud.CdnUrlPush("foo", {
    redo: 1,
    urls: ["https://www.example.com/a"],
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

foo = tencentcloud.CdnUrlPush("foo",
    redo=1,
    urls=["https://www.example.com/a"])
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := tencentcloud.NewCdnUrlPush(ctx, "foo", &tencentcloud.CdnUrlPushArgs{
			Redo: pulumi.Float64(1),
			Urls: pulumi.StringArray{
				pulumi.String("https://www.example.com/a"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var foo = new Tencentcloud.CdnUrlPush("foo", new()
    {
        Redo = 1,
        Urls = new[]
        {
            "https://www.example.com/a",
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CdnUrlPush;
import com.pulumi.tencentcloud.CdnUrlPushArgs;
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 foo = new CdnUrlPush("foo", CdnUrlPushArgs.builder()
            .redo(1)
            .urls("https://www.example.com/a")
            .build());

    }
}
Copy
resources:
  foo:
    type: tencentcloud:CdnUrlPush
    properties:
      redo: 1
      urls:
        - https://www.example.com/a
Copy

Create CdnUrlPush Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new CdnUrlPush(name: string, args: CdnUrlPushArgs, opts?: CustomResourceOptions);
@overload
def CdnUrlPush(resource_name: str,
               args: CdnUrlPushArgs,
               opts: Optional[ResourceOptions] = None)

@overload
def CdnUrlPush(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               urls: Optional[Sequence[str]] = None,
               area: Optional[str] = None,
               cdn_url_push_id: Optional[str] = None,
               layer: Optional[str] = None,
               parse_m3u8: Optional[bool] = None,
               redo: Optional[float] = None,
               user_agent: Optional[str] = None)
func NewCdnUrlPush(ctx *Context, name string, args CdnUrlPushArgs, opts ...ResourceOption) (*CdnUrlPush, error)
public CdnUrlPush(string name, CdnUrlPushArgs args, CustomResourceOptions? opts = null)
public CdnUrlPush(String name, CdnUrlPushArgs args)
public CdnUrlPush(String name, CdnUrlPushArgs args, CustomResourceOptions options)
type: tencentcloud:CdnUrlPush
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. CdnUrlPushArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. CdnUrlPushArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. CdnUrlPushArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. CdnUrlPushArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. CdnUrlPushArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

CdnUrlPush 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 CdnUrlPush resource accepts the following input properties:

Urls This property is required. List<string>
List of url to push. NOTE: urls need include protocol prefix http:// or https://.
Area string
Specify push area. NOTE: only push same area cache contents.
CdnUrlPushId string
ID of the resource.
Layer string
Layer to push.
ParseM3u8 bool
Whether to recursive parse m3u8 files.
Redo double
Change to push again. NOTE: this argument only works while resource update, if set to 0 or null will not be triggered.
UserAgent string
Specify User-Agent HTTP header, default: TencentCdn.
Urls This property is required. []string
List of url to push. NOTE: urls need include protocol prefix http:// or https://.
Area string
Specify push area. NOTE: only push same area cache contents.
CdnUrlPushId string
ID of the resource.
Layer string
Layer to push.
ParseM3u8 bool
Whether to recursive parse m3u8 files.
Redo float64
Change to push again. NOTE: this argument only works while resource update, if set to 0 or null will not be triggered.
UserAgent string
Specify User-Agent HTTP header, default: TencentCdn.
urls This property is required. List<String>
List of url to push. NOTE: urls need include protocol prefix http:// or https://.
area String
Specify push area. NOTE: only push same area cache contents.
cdnUrlPushId String
ID of the resource.
layer String
Layer to push.
parseM3u8 Boolean
Whether to recursive parse m3u8 files.
redo Double
Change to push again. NOTE: this argument only works while resource update, if set to 0 or null will not be triggered.
userAgent String
Specify User-Agent HTTP header, default: TencentCdn.
urls This property is required. string[]
List of url to push. NOTE: urls need include protocol prefix http:// or https://.
area string
Specify push area. NOTE: only push same area cache contents.
cdnUrlPushId string
ID of the resource.
layer string
Layer to push.
parseM3u8 boolean
Whether to recursive parse m3u8 files.
redo number
Change to push again. NOTE: this argument only works while resource update, if set to 0 or null will not be triggered.
userAgent string
Specify User-Agent HTTP header, default: TencentCdn.
urls This property is required. Sequence[str]
List of url to push. NOTE: urls need include protocol prefix http:// or https://.
area str
Specify push area. NOTE: only push same area cache contents.
cdn_url_push_id str
ID of the resource.
layer str
Layer to push.
parse_m3u8 bool
Whether to recursive parse m3u8 files.
redo float
Change to push again. NOTE: this argument only works while resource update, if set to 0 or null will not be triggered.
user_agent str
Specify User-Agent HTTP header, default: TencentCdn.
urls This property is required. List<String>
List of url to push. NOTE: urls need include protocol prefix http:// or https://.
area String
Specify push area. NOTE: only push same area cache contents.
cdnUrlPushId String
ID of the resource.
layer String
Layer to push.
parseM3u8 Boolean
Whether to recursive parse m3u8 files.
redo Number
Change to push again. NOTE: this argument only works while resource update, if set to 0 or null will not be triggered.
userAgent String
Specify User-Agent HTTP header, default: TencentCdn.

Outputs

All input properties are implicitly available as output properties. Additionally, the CdnUrlPush resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
PushHistories List<CdnUrlPushPushHistory>
logs of latest push task.
TaskId string
Push task id.
Id string
The provider-assigned unique ID for this managed resource.
PushHistories []CdnUrlPushPushHistory
logs of latest push task.
TaskId string
Push task id.
id String
The provider-assigned unique ID for this managed resource.
pushHistories List<CdnUrlPushPushHistory>
logs of latest push task.
taskId String
Push task id.
id string
The provider-assigned unique ID for this managed resource.
pushHistories CdnUrlPushPushHistory[]
logs of latest push task.
taskId string
Push task id.
id str
The provider-assigned unique ID for this managed resource.
push_histories Sequence[CdnUrlPushPushHistory]
logs of latest push task.
task_id str
Push task id.
id String
The provider-assigned unique ID for this managed resource.
pushHistories List<Property Map>
logs of latest push task.
taskId String
Push task id.

Look up Existing CdnUrlPush Resource

Get an existing CdnUrlPush 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?: CdnUrlPushState, opts?: CustomResourceOptions): CdnUrlPush
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        area: Optional[str] = None,
        cdn_url_push_id: Optional[str] = None,
        layer: Optional[str] = None,
        parse_m3u8: Optional[bool] = None,
        push_histories: Optional[Sequence[CdnUrlPushPushHistoryArgs]] = None,
        redo: Optional[float] = None,
        task_id: Optional[str] = None,
        urls: Optional[Sequence[str]] = None,
        user_agent: Optional[str] = None) -> CdnUrlPush
func GetCdnUrlPush(ctx *Context, name string, id IDInput, state *CdnUrlPushState, opts ...ResourceOption) (*CdnUrlPush, error)
public static CdnUrlPush Get(string name, Input<string> id, CdnUrlPushState? state, CustomResourceOptions? opts = null)
public static CdnUrlPush get(String name, Output<String> id, CdnUrlPushState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:CdnUrlPush    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
Area string
Specify push area. NOTE: only push same area cache contents.
CdnUrlPushId string
ID of the resource.
Layer string
Layer to push.
ParseM3u8 bool
Whether to recursive parse m3u8 files.
PushHistories List<CdnUrlPushPushHistory>
logs of latest push task.
Redo double
Change to push again. NOTE: this argument only works while resource update, if set to 0 or null will not be triggered.
TaskId string
Push task id.
Urls List<string>
List of url to push. NOTE: urls need include protocol prefix http:// or https://.
UserAgent string
Specify User-Agent HTTP header, default: TencentCdn.
Area string
Specify push area. NOTE: only push same area cache contents.
CdnUrlPushId string
ID of the resource.
Layer string
Layer to push.
ParseM3u8 bool
Whether to recursive parse m3u8 files.
PushHistories []CdnUrlPushPushHistoryArgs
logs of latest push task.
Redo float64
Change to push again. NOTE: this argument only works while resource update, if set to 0 or null will not be triggered.
TaskId string
Push task id.
Urls []string
List of url to push. NOTE: urls need include protocol prefix http:// or https://.
UserAgent string
Specify User-Agent HTTP header, default: TencentCdn.
area String
Specify push area. NOTE: only push same area cache contents.
cdnUrlPushId String
ID of the resource.
layer String
Layer to push.
parseM3u8 Boolean
Whether to recursive parse m3u8 files.
pushHistories List<CdnUrlPushPushHistory>
logs of latest push task.
redo Double
Change to push again. NOTE: this argument only works while resource update, if set to 0 or null will not be triggered.
taskId String
Push task id.
urls List<String>
List of url to push. NOTE: urls need include protocol prefix http:// or https://.
userAgent String
Specify User-Agent HTTP header, default: TencentCdn.
area string
Specify push area. NOTE: only push same area cache contents.
cdnUrlPushId string
ID of the resource.
layer string
Layer to push.
parseM3u8 boolean
Whether to recursive parse m3u8 files.
pushHistories CdnUrlPushPushHistory[]
logs of latest push task.
redo number
Change to push again. NOTE: this argument only works while resource update, if set to 0 or null will not be triggered.
taskId string
Push task id.
urls string[]
List of url to push. NOTE: urls need include protocol prefix http:// or https://.
userAgent string
Specify User-Agent HTTP header, default: TencentCdn.
area str
Specify push area. NOTE: only push same area cache contents.
cdn_url_push_id str
ID of the resource.
layer str
Layer to push.
parse_m3u8 bool
Whether to recursive parse m3u8 files.
push_histories Sequence[CdnUrlPushPushHistoryArgs]
logs of latest push task.
redo float
Change to push again. NOTE: this argument only works while resource update, if set to 0 or null will not be triggered.
task_id str
Push task id.
urls Sequence[str]
List of url to push. NOTE: urls need include protocol prefix http:// or https://.
user_agent str
Specify User-Agent HTTP header, default: TencentCdn.
area String
Specify push area. NOTE: only push same area cache contents.
cdnUrlPushId String
ID of the resource.
layer String
Layer to push.
parseM3u8 Boolean
Whether to recursive parse m3u8 files.
pushHistories List<Property Map>
logs of latest push task.
redo Number
Change to push again. NOTE: this argument only works while resource update, if set to 0 or null will not be triggered.
taskId String
Push task id.
urls List<String>
List of url to push. NOTE: urls need include protocol prefix http:// or https://.
userAgent String
Specify User-Agent HTTP header, default: TencentCdn.

Supporting Types

CdnUrlPushPushHistory
, CdnUrlPushPushHistoryArgs

Area This property is required. string
Specify push area. NOTE: only push same area cache contents.
CreateTime This property is required. string
Push task create time.
Percent This property is required. double
Push progress in percent.
Status This property is required. string
Push status of fail, done, process or invalid (4xx, 5xx response).
TaskId This property is required. string
Push task id.
UpdateTime This property is required. string
Push task update time.
Url This property is required. string
Push url.
Area This property is required. string
Specify push area. NOTE: only push same area cache contents.
CreateTime This property is required. string
Push task create time.
Percent This property is required. float64
Push progress in percent.
Status This property is required. string
Push status of fail, done, process or invalid (4xx, 5xx response).
TaskId This property is required. string
Push task id.
UpdateTime This property is required. string
Push task update time.
Url This property is required. string
Push url.
area This property is required. String
Specify push area. NOTE: only push same area cache contents.
createTime This property is required. String
Push task create time.
percent This property is required. Double
Push progress in percent.
status This property is required. String
Push status of fail, done, process or invalid (4xx, 5xx response).
taskId This property is required. String
Push task id.
updateTime This property is required. String
Push task update time.
url This property is required. String
Push url.
area This property is required. string
Specify push area. NOTE: only push same area cache contents.
createTime This property is required. string
Push task create time.
percent This property is required. number
Push progress in percent.
status This property is required. string
Push status of fail, done, process or invalid (4xx, 5xx response).
taskId This property is required. string
Push task id.
updateTime This property is required. string
Push task update time.
url This property is required. string
Push url.
area This property is required. str
Specify push area. NOTE: only push same area cache contents.
create_time This property is required. str
Push task create time.
percent This property is required. float
Push progress in percent.
status This property is required. str
Push status of fail, done, process or invalid (4xx, 5xx response).
task_id This property is required. str
Push task id.
update_time This property is required. str
Push task update time.
url This property is required. str
Push url.
area This property is required. String
Specify push area. NOTE: only push same area cache contents.
createTime This property is required. String
Push task create time.
percent This property is required. Number
Push progress in percent.
status This property is required. String
Push status of fail, done, process or invalid (4xx, 5xx response).
taskId This property is required. String
Push task id.
updateTime This property is required. String
Push task update time.
url This property is required. String
Push url.

Package Details

Repository
tencentcloud tencentcloudstack/terraform-provider-tencentcloud
License
Notes
This Pulumi package is based on the tencentcloud Terraform Provider.