1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. log
  5. getProjects
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.log.getProjects

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 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>
    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
    File name where to save data source results (after running pulumi preview).
    Status string
    The status of log project. Valid values Normal and Disable.
    Ids []string
    A list of project IDs.
    NameRegex 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 string
    The status of log project. Valid values Normal and Disable.
    ids List<String>
    A list of project IDs.
    nameRegex 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 String
    The status of log project. Valid values Normal and Disable.
    ids string[]
    A list of project IDs.
    nameRegex 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 string
    The status of log project. Valid values Normal and Disable.
    ids Sequence[str]
    A list of project IDs.
    name_regex 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 str
    The status of log project. Valid values Normal and Disable.
    ids List<String>
    A list of project IDs.
    nameRegex 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 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 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.
    Policy string
    The policy 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.
    Policy string
    The policy 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.
    policy String
    The policy 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.
    policy string
    The policy 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.
    policy str
    The policy 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.
    policy String
    The policy of project.
    projectName String
    The name of the project.
    region String
    The region of project.
    status 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.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi