Alibaba Cloud

v3.28.0 published on Tuesday, Aug 16, 2022 by Pulumi

getProjects

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>
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]
func GetProjects(ctx *Context, args *GetProjectsArgs, opts ...InvokeOption) (*GetProjectsResult, error)
func GetProjectsOutput(ctx *Context, args *GetProjectsOutputArgs, opts ...InvokeOption) GetProjectsResultOutput

> 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)
}
public static CompletableFuture<GetProjectsResult> getProjects(GetProjectsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: alicloud:log/getProjects:getProjects
  arguments:
    # arguments dictionary

The following arguments are supported:

Ids List<string>

A list of project IDs.

NameRegex string

A regex string to filter results by project name.

OutputFile string
Status string

The status of project.

Ids []string

A list of project IDs.

NameRegex string

A regex string to filter results by project name.

OutputFile string
Status string

The status of project.

ids List<String>

A list of project IDs.

nameRegex String

A regex string to filter results by project name.

outputFile String
status String

The status of project.

ids string[]

A list of project IDs.

nameRegex string

A regex string to filter results by project name.

outputFile string
status string

The status of project.

ids Sequence[str]

A list of project IDs.

name_regex str

A regex string to filter results by project name.

output_file str
status str

The status of project.

ids List<String>

A list of project IDs.

nameRegex String

A regex string to filter results by project name.

outputFile String
status String

The status of project.

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 string

The description of the project.

Id string

The ID of the project.

LastModifyTime string

The last modify time of project.

Owner string

The owner of project.

ProjectName string

The name of the project.

Region string

The region of project.

Status string

The status of project.

Description string

The description of the project.

Id string

The ID of the project.

LastModifyTime string

The last modify time of project.

Owner string

The owner of project.

ProjectName string

The name of the project.

Region string

The region of project.

Status string

The status of project.

description String

The description of the project.

id String

The ID of the project.

lastModifyTime String

The last modify time of project.

owner String

The owner of project.

projectName String

The name of the project.

region String

The region of project.

status String

The status of project.

description string

The description of the project.

id string

The ID of the project.

lastModifyTime string

The last modify time of project.

owner string

The owner of project.

projectName string

The name of the project.

region string

The region of project.

status string

The status of project.

description str

The description of the project.

id str

The ID of the project.

last_modify_time str

The last modify time of project.

owner str

The owner of project.

project_name str

The name of the project.

region str

The region of project.

status str

The status of project.

description String

The description of the project.

id String

The ID of the project.

lastModifyTime String

The last modify time of project.

owner String

The owner of project.

projectName String

The name of the project.

region String

The region of project.

status String

The status of project.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.