1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. log
  5. getProjects
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.log.getProjects

Explore with Pulumi AI

Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

This data source provides the Log Projects of the current Alibaba Cloud user.

NOTE: Available in v1.126.0+.

Using getProjects

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 getProjects(args: GetProjectsArgs, opts?: InvokeOptions): Promise<GetProjectsResult>
function getProjectsOutput(args: GetProjectsOutputArgs, opts?: InvokeOptions): Output<GetProjectsResult>
Copy
def get_projects(ids: Optional[Sequence[str]] = None,
                 name_regex: Optional[str] = None,
                 output_file: Optional[str] = None,
                 status: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetProjectsResult
def get_projects_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                 name_regex: Optional[pulumi.Input[str]] = None,
                 output_file: Optional[pulumi.Input[str]] = None,
                 status: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetProjectsResult]
Copy
func GetProjects(ctx *Context, args *GetProjectsArgs, opts ...InvokeOption) (*GetProjectsResult, error)
func GetProjectsOutput(ctx *Context, args *GetProjectsOutputArgs, opts ...InvokeOption) GetProjectsResultOutput
Copy

> Note: This function is named GetProjects in the Go SDK.

public static class GetProjects 
{
    public static Task<GetProjectsResult> InvokeAsync(GetProjectsArgs args, InvokeOptions? opts = null)
    public static Output<GetProjectsResult> Invoke(GetProjectsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetProjectsResult> getProjects(GetProjectsArgs args, InvokeOptions options)
public static Output<GetProjectsResult> getProjects(GetProjectsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:log/getProjects:getProjects
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Ids Changes to this property will trigger replacement. List<string>
A list of project IDs.
NameRegex Changes to this property will trigger replacement. string
A regex string to filter results by project name.
OutputFile string
File name where to save data source results (after running pulumi preview).
Status Changes to this property will trigger replacement. string
The status of log project. Valid values Normal and Disable.
Ids Changes to this property will trigger replacement. []string
A list of project IDs.
NameRegex Changes to this property will trigger replacement. string
A regex string to filter results by project name.
OutputFile string
File name where to save data source results (after running pulumi preview).
Status Changes to this property will trigger replacement. string
The status of log project. Valid values Normal and Disable.
ids Changes to this property will trigger replacement. List<String>
A list of project IDs.
nameRegex Changes to this property will trigger replacement. String
A regex string to filter results by project name.
outputFile String
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. String
The status of log project. Valid values Normal and Disable.
ids Changes to this property will trigger replacement. string[]
A list of project IDs.
nameRegex Changes to this property will trigger replacement. string
A regex string to filter results by project name.
outputFile string
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. string
The status of log project. Valid values Normal and Disable.
ids Changes to this property will trigger replacement. Sequence[str]
A list of project IDs.
name_regex Changes to this property will trigger replacement. str
A regex string to filter results by project name.
output_file str
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. str
The status of log project. Valid values Normal and Disable.
ids Changes to this property will trigger replacement. List<String>
A list of project IDs.
nameRegex Changes to this property will trigger replacement. String
A regex string to filter results by project name.
outputFile String
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. String
The status of log project. Valid values Normal and Disable.

getProjects Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Ids List<string>
Names List<string>
Projects List<Pulumi.AliCloud.Log.Outputs.GetProjectsProject>
NameRegex string
OutputFile string
Status string
Id string
The provider-assigned unique ID for this managed resource.
Ids []string
Names []string
Projects []GetProjectsProject
NameRegex string
OutputFile string
Status string
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
names List<String>
projects List<GetProjectsProject>
nameRegex String
outputFile String
status String
id string
The provider-assigned unique ID for this managed resource.
ids string[]
names string[]
projects GetProjectsProject[]
nameRegex string
outputFile string
status string
id str
The provider-assigned unique ID for this managed resource.
ids Sequence[str]
names Sequence[str]
projects Sequence[GetProjectsProject]
name_regex str
output_file str
status str
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
names List<String>
projects List<Property Map>
nameRegex String
outputFile String
status String

Supporting Types

GetProjectsProject

Description This property is required. string
The description of the project.
Id This property is required. string
The ID of the project.
LastModifyTime This property is required. string
The last modify time of project.
Owner This property is required. string
The owner of project.
Policy This property is required. string
The policy of project.
ProjectName This property is required. string
The name of the project.
Region This property is required. string
The region of project.
Status This property is required. string
The status of project.
Description This property is required. string
The description of the project.
Id This property is required. string
The ID of the project.
LastModifyTime This property is required. string
The last modify time of project.
Owner This property is required. string
The owner of project.
Policy This property is required. string
The policy of project.
ProjectName This property is required. string
The name of the project.
Region This property is required. string
The region of project.
Status This property is required. string
The status of project.
description This property is required. String
The description of the project.
id This property is required. String
The ID of the project.
lastModifyTime This property is required. String
The last modify time of project.
owner This property is required. String
The owner of project.
policy This property is required. String
The policy of project.
projectName This property is required. String
The name of the project.
region This property is required. String
The region of project.
status This property is required. String
The status of project.
description This property is required. string
The description of the project.
id This property is required. string
The ID of the project.
lastModifyTime This property is required. string
The last modify time of project.
owner This property is required. string
The owner of project.
policy This property is required. string
The policy of project.
projectName This property is required. string
The name of the project.
region This property is required. string
The region of project.
status This property is required. string
The status of project.
description This property is required. str
The description of the project.
id This property is required. str
The ID of the project.
last_modify_time This property is required. str
The last modify time of project.
owner This property is required. str
The owner of project.
policy This property is required. str
The policy of project.
project_name This property is required. str
The name of the project.
region This property is required. str
The region of project.
status This property is required. str
The status of project.
description This property is required. String
The description of the project.
id This property is required. String
The ID of the project.
lastModifyTime This property is required. String
The last modify time of project.
owner This property is required. String
The owner of project.
policy This property is required. String
The policy of project.
projectName This property is required. String
The name of the project.
region This property is required. String
The region of project.
status This property is required. String
The status of project.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi