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"]});
import pulumi
import pulumi_tencentcloud as tencentcloud
foo = tencentcloud.CdnUrlPush("foo", urls=["https://www.example.com/b"])
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
})
}
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",
},
});
});
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());
}
}
resources:
foo:
type: tencentcloud:CdnUrlPush
properties:
urls:
- https://www.example.com/b
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"],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
foo = tencentcloud.CdnUrlPush("foo",
redo=1,
urls=["https://www.example.com/a"])
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
})
}
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",
},
});
});
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());
}
}
resources:
foo:
type: tencentcloud:CdnUrlPush
properties:
redo: 1
urls:
- https://www.example.com/a
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 string
- The unique name of the resource.
- args CdnUrlPushArgs
- 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 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 string
- The unique name of the resource.
- args CdnUrlPushArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CdnUrlPushArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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 List<string>
- List of url to push. NOTE: urls need include protocol prefix
http://
orhttps://
. - Area string
- Specify push area. NOTE: only push same area cache contents.
- Cdn
Url stringPush Id - ID of the resource.
- Layer string
- Layer to push.
- Parse
M3u8 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. - User
Agent string - Specify
User-Agent
HTTP header, default:TencentCdn
.
- Urls []string
- List of url to push. NOTE: urls need include protocol prefix
http://
orhttps://
. - Area string
- Specify push area. NOTE: only push same area cache contents.
- Cdn
Url stringPush Id - ID of the resource.
- Layer string
- Layer to push.
- Parse
M3u8 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. - User
Agent string - Specify
User-Agent
HTTP header, default:TencentCdn
.
- urls List<String>
- List of url to push. NOTE: urls need include protocol prefix
http://
orhttps://
. - area String
- Specify push area. NOTE: only push same area cache contents.
- cdn
Url StringPush Id - ID of the resource.
- layer String
- Layer to push.
- parse
M3u8 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. - user
Agent String - Specify
User-Agent
HTTP header, default:TencentCdn
.
- urls string[]
- List of url to push. NOTE: urls need include protocol prefix
http://
orhttps://
. - area string
- Specify push area. NOTE: only push same area cache contents.
- cdn
Url stringPush Id - ID of the resource.
- layer string
- Layer to push.
- parse
M3u8 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. - user
Agent string - Specify
User-Agent
HTTP header, default:TencentCdn
.
- urls Sequence[str]
- List of url to push. NOTE: urls need include protocol prefix
http://
orhttps://
. - area str
- Specify push area. NOTE: only push same area cache contents.
- cdn_
url_ strpush_ id - 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 List<String>
- List of url to push. NOTE: urls need include protocol prefix
http://
orhttps://
. - area String
- Specify push area. NOTE: only push same area cache contents.
- cdn
Url StringPush Id - ID of the resource.
- layer String
- Layer to push.
- parse
M3u8 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. - user
Agent 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.
- Push
Histories List<CdnUrl Push Push History> - logs of latest push task.
- Task
Id string - Push task id.
- Id string
- The provider-assigned unique ID for this managed resource.
- Push
Histories []CdnUrl Push Push History - logs of latest push task.
- Task
Id string - Push task id.
- id String
- The provider-assigned unique ID for this managed resource.
- push
Histories List<CdnUrl Push Push History> - logs of latest push task.
- task
Id String - Push task id.
- id string
- The provider-assigned unique ID for this managed resource.
- push
Histories CdnUrl Push Push History[] - logs of latest push task.
- task
Id string - Push task id.
- id str
- The provider-assigned unique ID for this managed resource.
- push_
histories Sequence[CdnUrl Push Push History] - logs of latest push task.
- task_
id str - Push task id.
- id String
- The provider-assigned unique ID for this managed resource.
- push
Histories List<Property Map> - logs of latest push task.
- task
Id 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
- 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.
- Area string
- Specify push area. NOTE: only push same area cache contents.
- Cdn
Url stringPush Id - ID of the resource.
- Layer string
- Layer to push.
- Parse
M3u8 bool - Whether to recursive parse m3u8 files.
- Push
Histories List<CdnUrl Push Push History> - 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. - Task
Id string - Push task id.
- Urls List<string>
- List of url to push. NOTE: urls need include protocol prefix
http://
orhttps://
. - User
Agent string - Specify
User-Agent
HTTP header, default:TencentCdn
.
- Area string
- Specify push area. NOTE: only push same area cache contents.
- Cdn
Url stringPush Id - ID of the resource.
- Layer string
- Layer to push.
- Parse
M3u8 bool - Whether to recursive parse m3u8 files.
- Push
Histories []CdnUrl Push Push History Args - 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. - Task
Id string - Push task id.
- Urls []string
- List of url to push. NOTE: urls need include protocol prefix
http://
orhttps://
. - User
Agent string - Specify
User-Agent
HTTP header, default:TencentCdn
.
- area String
- Specify push area. NOTE: only push same area cache contents.
- cdn
Url StringPush Id - ID of the resource.
- layer String
- Layer to push.
- parse
M3u8 Boolean - Whether to recursive parse m3u8 files.
- push
Histories List<CdnUrl Push Push History> - 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. - task
Id String - Push task id.
- urls List<String>
- List of url to push. NOTE: urls need include protocol prefix
http://
orhttps://
. - user
Agent String - Specify
User-Agent
HTTP header, default:TencentCdn
.
- area string
- Specify push area. NOTE: only push same area cache contents.
- cdn
Url stringPush Id - ID of the resource.
- layer string
- Layer to push.
- parse
M3u8 boolean - Whether to recursive parse m3u8 files.
- push
Histories CdnUrl Push Push History[] - 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. - task
Id string - Push task id.
- urls string[]
- List of url to push. NOTE: urls need include protocol prefix
http://
orhttps://
. - user
Agent string - Specify
User-Agent
HTTP header, default:TencentCdn
.
- area str
- Specify push area. NOTE: only push same area cache contents.
- cdn_
url_ strpush_ id - ID of the resource.
- layer str
- Layer to push.
- parse_
m3u8 bool - Whether to recursive parse m3u8 files.
- push_
histories Sequence[CdnUrl Push Push History Args] - 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://
orhttps://
. - user_
agent str - Specify
User-Agent
HTTP header, default:TencentCdn
.
- area String
- Specify push area. NOTE: only push same area cache contents.
- cdn
Url StringPush Id - ID of the resource.
- layer String
- Layer to push.
- parse
M3u8 Boolean - Whether to recursive parse m3u8 files.
- push
Histories 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. - task
Id String - Push task id.
- urls List<String>
- List of url to push. NOTE: urls need include protocol prefix
http://
orhttps://
. - user
Agent String - Specify
User-Agent
HTTP header, default:TencentCdn
.
Supporting Types
CdnUrlPushPushHistory, CdnUrlPushPushHistoryArgs
- Area string
- Specify push area. NOTE: only push same area cache contents.
- Create
Time string - Push task create time.
- Percent double
- Push progress in percent.
- Status string
- Push status of
fail
,done
,process
orinvalid
(4xx, 5xx response). - Task
Id string - Push task id.
- Update
Time string - Push task update time.
- Url string
- Push url.
- Area string
- Specify push area. NOTE: only push same area cache contents.
- Create
Time string - Push task create time.
- Percent float64
- Push progress in percent.
- Status string
- Push status of
fail
,done
,process
orinvalid
(4xx, 5xx response). - Task
Id string - Push task id.
- Update
Time string - Push task update time.
- Url string
- Push url.
- area String
- Specify push area. NOTE: only push same area cache contents.
- create
Time String - Push task create time.
- percent Double
- Push progress in percent.
- status String
- Push status of
fail
,done
,process
orinvalid
(4xx, 5xx response). - task
Id String - Push task id.
- update
Time String - Push task update time.
- url String
- Push url.
- area string
- Specify push area. NOTE: only push same area cache contents.
- create
Time string - Push task create time.
- percent number
- Push progress in percent.
- status string
- Push status of
fail
,done
,process
orinvalid
(4xx, 5xx response). - task
Id string - Push task id.
- update
Time string - Push task update time.
- url string
- Push url.
- area str
- Specify push area. NOTE: only push same area cache contents.
- create_
time str - Push task create time.
- percent float
- Push progress in percent.
- status str
- Push status of
fail
,done
,process
orinvalid
(4xx, 5xx response). - task_
id str - Push task id.
- update_
time str - Push task update time.
- url str
- Push url.
- area String
- Specify push area. NOTE: only push same area cache contents.
- create
Time String - Push task create time.
- percent Number
- Push progress in percent.
- status String
- Push status of
fail
,done
,process
orinvalid
(4xx, 5xx response). - task
Id String - Push task id.
- update
Time String - Push task update time.
- url String
- Push url.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.