published on Monday, Mar 9, 2026 by Byteplus
published on Monday, Mar 9, 2026 by Byteplus
日志项目是数据的项目管理单元,用于租户资源隔离和控制,通常一个日志项目对应一个应用、业务或产品。
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
const tLSProjectDemo = new bytepluscc.tls.Project("TLSProjectDemo", {
projectName: "ccapi_test",
description: "ccapi_test",
iamProjectName: "default",
tags: [{
key: "env",
value: "test",
}],
});
import pulumi
import pulumi_bytepluscc as bytepluscc
t_ls_project_demo = bytepluscc.tls.Project("TLSProjectDemo",
project_name="ccapi_test",
description="ccapi_test",
iam_project_name="default",
tags=[{
"key": "env",
"value": "test",
}])
package main
import (
"github.com/byteplus-sdk/pulumi-bytepluscc/sdk/go/bytepluscc/tls"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tls.NewProject(ctx, "TLSProjectDemo", &tls.ProjectArgs{
ProjectName: pulumi.String("ccapi_test"),
Description: pulumi.String("ccapi_test"),
IamProjectName: pulumi.String("default"),
Tags: tls.ProjectTagArray{
&tls.ProjectTagArgs{
Key: pulumi.String("env"),
Value: pulumi.String("test"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Bytepluscc = Byteplus.Pulumi.Bytepluscc;
return await Deployment.RunAsync(() =>
{
var tLSProjectDemo = new Bytepluscc.Tls.Project("TLSProjectDemo", new()
{
ProjectName = "ccapi_test",
Description = "ccapi_test",
IamProjectName = "default",
Tags = new[]
{
new Bytepluscc.Tls.Inputs.ProjectTagArgs
{
Key = "env",
Value = "test",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.byteplus.bytepluscc.tls.Project;
import com.byteplus.bytepluscc.tls.ProjectArgs;
import com.pulumi.bytepluscc.tls.inputs.ProjectTagArgs;
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 tLSProjectDemo = new Project("tLSProjectDemo", ProjectArgs.builder()
.projectName("ccapi_test")
.description("ccapi_test")
.iamProjectName("default")
.tags(ProjectTagArgs.builder()
.key("env")
.value("test")
.build())
.build());
}
}
resources:
tLSProjectDemo:
type: bytepluscc:tls:Project
name: TLSProjectDemo
properties:
projectName: ccapi_test
description: ccapi_test
iamProjectName: default
tags:
- key: env
value: test
Create Project Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Project(name: string, args: ProjectArgs, opts?: CustomResourceOptions);@overload
def Project(resource_name: str,
args: ProjectArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Project(resource_name: str,
opts: Optional[ResourceOptions] = None,
project_name: Optional[str] = None,
description: Optional[str] = None,
iam_project_name: Optional[str] = None,
tags: Optional[Sequence[ProjectTagArgs]] = None)func NewProject(ctx *Context, name string, args ProjectArgs, opts ...ResourceOption) (*Project, error)public Project(string name, ProjectArgs args, CustomResourceOptions? opts = null)
public Project(String name, ProjectArgs args)
public Project(String name, ProjectArgs args, CustomResourceOptions options)
type: bytepluscc:tls:Project
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 ProjectArgs
- 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 ProjectArgs
- 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 ProjectArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProjectArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProjectArgs
- 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 byteplusccProjectResource = new Bytepluscc.Tls.Project("byteplusccProjectResource", new()
{
ProjectName = "string",
Description = "string",
IamProjectName = "string",
Tags = new[]
{
new Bytepluscc.Tls.Inputs.ProjectTagArgs
{
Key = "string",
Value = "string",
},
},
});
example, err := tls.NewProject(ctx, "byteplusccProjectResource", &tls.ProjectArgs{
ProjectName: pulumi.String("string"),
Description: pulumi.String("string"),
IamProjectName: pulumi.String("string"),
Tags: tls.ProjectTagArray{
&tls.ProjectTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
})
var byteplusccProjectResource = new com.byteplus.bytepluscc.tls.Project("byteplusccProjectResource", com.byteplus.bytepluscc.tls.ProjectArgs.builder()
.projectName("string")
.description("string")
.iamProjectName("string")
.tags(ProjectTagArgs.builder()
.key("string")
.value("string")
.build())
.build());
bytepluscc_project_resource = bytepluscc.tls.Project("byteplusccProjectResource",
project_name="string",
description="string",
iam_project_name="string",
tags=[{
"key": "string",
"value": "string",
}])
const byteplusccProjectResource = new bytepluscc.tls.Project("byteplusccProjectResource", {
projectName: "string",
description: "string",
iamProjectName: "string",
tags: [{
key: "string",
value: "string",
}],
});
type: bytepluscc:tls:Project
properties:
description: string
iamProjectName: string
projectName: string
tags:
- key: string
value: string
Project 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 Project resource accepts the following input properties:
- Project
Name string - 日志项目名称。
- Description string
- 日志项目的简单描述。
- Iam
Project stringName - 日志项目所属的 IAM 项目。
-
List<Byteplus.
Project Tag>
- Project
Name string - 日志项目名称。
- Description string
- 日志项目的简单描述。
- Iam
Project stringName - 日志项目所属的 IAM 项目。
-
[]Project
Tag Args
- project
Name String - 日志项目名称。
- description String
- 日志项目的简单描述。
- iam
Project StringName - 日志项目所属的 IAM 项目。
-
List<Project
Tag>
- project
Name string - 日志项目名称。
- description string
- 日志项目的简单描述。
- iam
Project stringName - 日志项目所属的 IAM 项目。
-
Project
Tag[]
- project_
name str - 日志项目名称。
- description str
- 日志项目的简单描述。
- iam_
project_ strname - 日志项目所属的 IAM 项目。
-
Sequence[Project
Tag Args]
- project
Name String - 日志项目名称。
- description String
- 日志项目的简单描述。
- iam
Project StringName - 日志项目所属的 IAM 项目。
- List<Property Map>
Outputs
All input properties are implicitly available as output properties. Additionally, the Project resource produces the following output properties:
- Created
Time string - 日志项目创建时间。
- Id string
- The provider-assigned unique ID for this managed resource.
- Inner
Net stringDomain - 私网连接域名。
- Project
Id string - 日志项目的 ID。
- Topic
Count int - 当前日志项目下的日志主题数量。
- Created
Time string - 日志项目创建时间。
- Id string
- The provider-assigned unique ID for this managed resource.
- Inner
Net stringDomain - 私网连接域名。
- Project
Id string - 日志项目的 ID。
- Topic
Count int - 当前日志项目下的日志主题数量。
- created
Time String - 日志项目创建时间。
- id String
- The provider-assigned unique ID for this managed resource.
- inner
Net StringDomain - 私网连接域名。
- project
Id String - 日志项目的 ID。
- topic
Count Integer - 当前日志项目下的日志主题数量。
- created
Time string - 日志项目创建时间。
- id string
- The provider-assigned unique ID for this managed resource.
- inner
Net stringDomain - 私网连接域名。
- project
Id string - 日志项目的 ID。
- topic
Count number - 当前日志项目下的日志主题数量。
- created_
time str - 日志项目创建时间。
- id str
- The provider-assigned unique ID for this managed resource.
- inner_
net_ strdomain - 私网连接域名。
- project_
id str - 日志项目的 ID。
- topic_
count int - 当前日志项目下的日志主题数量。
- created
Time String - 日志项目创建时间。
- id String
- The provider-assigned unique ID for this managed resource.
- inner
Net StringDomain - 私网连接域名。
- project
Id String - 日志项目的 ID。
- topic
Count Number - 当前日志项目下的日志主题数量。
Look up Existing Project Resource
Get an existing Project 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?: ProjectState, opts?: CustomResourceOptions): Project@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_time: Optional[str] = None,
description: Optional[str] = None,
iam_project_name: Optional[str] = None,
inner_net_domain: Optional[str] = None,
project_id: Optional[str] = None,
project_name: Optional[str] = None,
tags: Optional[Sequence[ProjectTagArgs]] = None,
topic_count: Optional[int] = None) -> Projectfunc GetProject(ctx *Context, name string, id IDInput, state *ProjectState, opts ...ResourceOption) (*Project, error)public static Project Get(string name, Input<string> id, ProjectState? state, CustomResourceOptions? opts = null)public static Project get(String name, Output<String> id, ProjectState state, CustomResourceOptions options)resources: _: type: bytepluscc:tls:Project 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.
- Created
Time string - 日志项目创建时间。
- Description string
- 日志项目的简单描述。
- Iam
Project stringName - 日志项目所属的 IAM 项目。
- Inner
Net stringDomain - 私网连接域名。
- Project
Id string - 日志项目的 ID。
- Project
Name string - 日志项目名称。
-
List<Byteplus.
Project Tag> - Topic
Count int - 当前日志项目下的日志主题数量。
- Created
Time string - 日志项目创建时间。
- Description string
- 日志项目的简单描述。
- Iam
Project stringName - 日志项目所属的 IAM 项目。
- Inner
Net stringDomain - 私网连接域名。
- Project
Id string - 日志项目的 ID。
- Project
Name string - 日志项目名称。
-
[]Project
Tag Args - Topic
Count int - 当前日志项目下的日志主题数量。
- created
Time String - 日志项目创建时间。
- description String
- 日志项目的简单描述。
- iam
Project StringName - 日志项目所属的 IAM 项目。
- inner
Net StringDomain - 私网连接域名。
- project
Id String - 日志项目的 ID。
- project
Name String - 日志项目名称。
-
List<Project
Tag> - topic
Count Integer - 当前日志项目下的日志主题数量。
- created
Time string - 日志项目创建时间。
- description string
- 日志项目的简单描述。
- iam
Project stringName - 日志项目所属的 IAM 项目。
- inner
Net stringDomain - 私网连接域名。
- project
Id string - 日志项目的 ID。
- project
Name string - 日志项目名称。
-
Project
Tag[] - topic
Count number - 当前日志项目下的日志主题数量。
- created_
time str - 日志项目创建时间。
- description str
- 日志项目的简单描述。
- iam_
project_ strname - 日志项目所属的 IAM 项目。
- inner_
net_ strdomain - 私网连接域名。
- project_
id str - 日志项目的 ID。
- project_
name str - 日志项目名称。
-
Sequence[Project
Tag Args] - topic_
count int - 当前日志项目下的日志主题数量。
- created
Time String - 日志项目创建时间。
- description String
- 日志项目的简单描述。
- iam
Project StringName - 日志项目所属的 IAM 项目。
- inner
Net StringDomain - 私网连接域名。
- project
Id String - 日志项目的 ID。
- project
Name String - 日志项目名称。
- List<Property Map>
- topic
Count Number - 当前日志项目下的日志主题数量。
Supporting Types
ProjectTag, ProjectTagArgs
Import
$ pulumi import bytepluscc:tls/project:Project example "project_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- bytepluscc byteplus-sdk/pulumi-bytepluscc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
byteplusccTerraform Provider.
published on Monday, Mar 9, 2026 by Byteplus
