Alibaba Cloud
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.
- Name
Regex string A regex string to filter results by project name.
- Output
File string - Status string
The status of project.
- Ids []string
A list of project IDs.
- Name
Regex string A regex string to filter results by project name.
- Output
File string - Status string
The status of project.
- ids
List
A list of project IDs.
- name
Regex String A regex string to filter results by project name.
- output
File String - status String
The status of project.
- ids string[]
A list of project IDs.
- name
Regex string A regex string to filter results by project name.
- output
File 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
A list of project IDs.
- name
Regex String A regex string to filter results by project name.
- output
File 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.
Ali Cloud. Log. Outputs. Get Projects Project> - Name
Regex string - Output
File string - Status string
- Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- Projects
[]Get
Projects Project - Name
Regex string - Output
File string - Status string
- id String
The provider-assigned unique ID for this managed resource.
- ids
List
- names
List
- projects
List
Projects Project> - name
Regex String - output
File String - status String
- id string
The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- projects
Get
Projects Project[] - name
Regex string - output
File string - status string
- id str
The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- projects
Sequence[Get
Projects Project] - name_
regex str - output_
file str - status str
Supporting Types
GetProjectsProject
- Description string
The description of the project.
- Id string
The ID of the project.
- Last
Modify stringTime The last modify time of project.
- Owner string
The owner of project.
- Project
Name 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.
- Last
Modify stringTime The last modify time of project.
- Owner string
The owner of project.
- Project
Name 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.
- last
Modify StringTime The last modify time of project.
- owner String
The owner of project.
- project
Name 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.
- last
Modify stringTime The last modify time of project.
- owner string
The owner of project.
- project
Name 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_ strtime 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.
- last
Modify StringTime The last modify time of project.
- owner String
The owner of project.
- project
Name 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.