published on Monday, Aug 24, 2026 by Pulumi
published on Monday, Aug 24, 2026 by Pulumi
Provides a File Storage (NAS) Log Analysis resource.
The log delivery configuration of a NAS file system.
For information about File Storage (NAS) Log Analysis and how to use it, see What is Log Analysis.
NOTE: Available since v1.286.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const _default = new alicloud.nas.FileSystem("default", {
protocolType: "NFS",
storageType: "Capacity",
});
const defaultLogAnalysis = new alicloud.nas.LogAnalysis("default", {fileSystemId: _default.id});
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.nas.FileSystem("default",
protocol_type="NFS",
storage_type="Capacity")
default_log_analysis = alicloud.nas.LogAnalysis("default", file_system_id=default.id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/nas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_default, err := nas.NewFileSystem(ctx, "default", &nas.FileSystemArgs{
ProtocolType: pulumi.String("NFS"),
StorageType: pulumi.String("Capacity"),
})
if err != nil {
return err
}
_, err = nas.NewLogAnalysis(ctx, "default", &nas.LogAnalysisArgs{
FileSystemId: _default.ID().ToIDOutput().ToStringOutput(),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var @default = new AliCloud.Nas.FileSystem("default", new()
{
ProtocolType = "NFS",
StorageType = "Capacity",
});
var defaultLogAnalysis = new AliCloud.Nas.LogAnalysis("default", new()
{
FileSystemId = @default.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.nas.FileSystem;
import com.pulumi.alicloud.nas.FileSystemArgs;
import com.pulumi.alicloud.nas.LogAnalysis;
import com.pulumi.alicloud.nas.LogAnalysisArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 default_ = new FileSystem("default", FileSystemArgs.builder()
.protocolType("NFS")
.storageType("Capacity")
.build());
var defaultLogAnalysis = new LogAnalysis("defaultLogAnalysis", LogAnalysisArgs.builder()
.fileSystemId(default_.id())
.build());
}
}
resources:
default:
type: alicloud:nas:FileSystem
properties:
protocolType: NFS
storageType: Capacity
defaultLogAnalysis:
type: alicloud:nas:LogAnalysis
name: default
properties:
fileSystemId: ${default.id}
pulumi {
required_providers {
alicloud = {
source = "pulumi/alicloud"
}
}
}
resource "alicloud_nas_filesystem" "default" {
protocol_type = "NFS"
storage_type = "Capacity"
}
resource "alicloud_nas_loganalysis" "default" {
file_system_id = alicloud_nas_filesystem.default.id
}
📚 Need more examples? VIEW MORE EXAMPLES
Create LogAnalysis Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LogAnalysis(name: string, args: LogAnalysisArgs, opts?: CustomResourceOptions);@overload
def LogAnalysis(resource_name: str,
args: LogAnalysisArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LogAnalysis(resource_name: str,
opts: Optional[ResourceOptions] = None,
file_system_id: Optional[str] = None)func NewLogAnalysis(ctx *Context, name string, args LogAnalysisArgs, opts ...ResourceOption) (*LogAnalysis, error)public LogAnalysis(string name, LogAnalysisArgs args, CustomResourceOptions? opts = null)
public LogAnalysis(String name, LogAnalysisArgs args)
public LogAnalysis(String name, LogAnalysisArgs args, CustomResourceOptions options)
type: alicloud:nas:LogAnalysis
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "alicloud_nas_log_analysis" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args LogAnalysisArgs
- 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 LogAnalysisArgs
- 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 LogAnalysisArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LogAnalysisArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LogAnalysisArgs
- 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 logAnalysisResource = new AliCloud.Nas.LogAnalysis("logAnalysisResource", new()
{
FileSystemId = "string",
});
example, err := nas.NewLogAnalysis(ctx, "logAnalysisResource", &nas.LogAnalysisArgs{
FileSystemId: pulumi.String("string"),
})
resource "alicloud_nas_log_analysis" "logAnalysisResource" {
lifecycle {
create_before_destroy = true
}
file_system_id = "string"
}
var logAnalysisResource = new LogAnalysis("logAnalysisResource", LogAnalysisArgs.builder()
.fileSystemId("string")
.build());
log_analysis_resource = alicloud.nas.LogAnalysis("logAnalysisResource", file_system_id="string")
const logAnalysisResource = new alicloud.nas.LogAnalysis("logAnalysisResource", {fileSystemId: "string"});
type: alicloud:nas:LogAnalysis
properties:
fileSystemId: string
LogAnalysis 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 LogAnalysis resource accepts the following input properties:
- File
System stringId - The ID of the file system for which log delivery is enabled.
- File
System stringId - The ID of the file system for which log delivery is enabled.
- file_
system_ stringid - The ID of the file system for which log delivery is enabled.
- file
System StringId - The ID of the file system for which log delivery is enabled.
- file
System stringId - The ID of the file system for which log delivery is enabled.
- file_
system_ strid - The ID of the file system for which log delivery is enabled.
- file
System StringId - The ID of the file system for which log delivery is enabled.
Outputs
All input properties are implicitly available as output properties. Additionally, the LogAnalysis resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Logstore string
- The name of the Logstore that receives NAS logs.
- Project string
- The name of the project that receives NAS logs.
- Region string
- The Simple Log Service region of the log project.
- Role
Arn string - The ARN of the service role used by NAS to deliver logs to Simple Log Service.
- Id string
- The provider-assigned unique ID for this managed resource.
- Logstore string
- The name of the Logstore that receives NAS logs.
- Project string
- The name of the project that receives NAS logs.
- Region string
- The Simple Log Service region of the log project.
- Role
Arn string - The ARN of the service role used by NAS to deliver logs to Simple Log Service.
- id string
- The provider-assigned unique ID for this managed resource.
- logstore string
- The name of the Logstore that receives NAS logs.
- project string
- The name of the project that receives NAS logs.
- region string
- The Simple Log Service region of the log project.
- role_
arn string - The ARN of the service role used by NAS to deliver logs to Simple Log Service.
- id String
- The provider-assigned unique ID for this managed resource.
- logstore String
- The name of the Logstore that receives NAS logs.
- project String
- The name of the project that receives NAS logs.
- region String
- The Simple Log Service region of the log project.
- role
Arn String - The ARN of the service role used by NAS to deliver logs to Simple Log Service.
- id string
- The provider-assigned unique ID for this managed resource.
- logstore string
- The name of the Logstore that receives NAS logs.
- project string
- The name of the project that receives NAS logs.
- region string
- The Simple Log Service region of the log project.
- role
Arn string - The ARN of the service role used by NAS to deliver logs to Simple Log Service.
- id str
- The provider-assigned unique ID for this managed resource.
- logstore str
- The name of the Logstore that receives NAS logs.
- project str
- The name of the project that receives NAS logs.
- region str
- The Simple Log Service region of the log project.
- role_
arn str - The ARN of the service role used by NAS to deliver logs to Simple Log Service.
- id String
- The provider-assigned unique ID for this managed resource.
- logstore String
- The name of the Logstore that receives NAS logs.
- project String
- The name of the project that receives NAS logs.
- region String
- The Simple Log Service region of the log project.
- role
Arn String - The ARN of the service role used by NAS to deliver logs to Simple Log Service.
Look up Existing LogAnalysis Resource
Get an existing LogAnalysis 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?: LogAnalysisState, opts?: CustomResourceOptions): LogAnalysis@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
file_system_id: Optional[str] = None,
logstore: Optional[str] = None,
project: Optional[str] = None,
region: Optional[str] = None,
role_arn: Optional[str] = None) -> LogAnalysisfunc GetLogAnalysis(ctx *Context, name string, id IDInput, state *LogAnalysisState, opts ...ResourceOption) (*LogAnalysis, error)public static LogAnalysis Get(string name, Input<string> id, LogAnalysisState? state, CustomResourceOptions? opts = null)public static LogAnalysis get(String name, Output<String> id, LogAnalysisState state, CustomResourceOptions options)resources: _: type: alicloud:nas:LogAnalysis get: id: ${id}import {
to = alicloud_nas_log_analysis.example
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.
- File
System stringId - The ID of the file system for which log delivery is enabled.
- Logstore string
- The name of the Logstore that receives NAS logs.
- Project string
- The name of the project that receives NAS logs.
- Region string
- The Simple Log Service region of the log project.
- Role
Arn string - The ARN of the service role used by NAS to deliver logs to Simple Log Service.
- File
System stringId - The ID of the file system for which log delivery is enabled.
- Logstore string
- The name of the Logstore that receives NAS logs.
- Project string
- The name of the project that receives NAS logs.
- Region string
- The Simple Log Service region of the log project.
- Role
Arn string - The ARN of the service role used by NAS to deliver logs to Simple Log Service.
- file_
system_ stringid - The ID of the file system for which log delivery is enabled.
- logstore string
- The name of the Logstore that receives NAS logs.
- project string
- The name of the project that receives NAS logs.
- region string
- The Simple Log Service region of the log project.
- role_
arn string - The ARN of the service role used by NAS to deliver logs to Simple Log Service.
- file
System StringId - The ID of the file system for which log delivery is enabled.
- logstore String
- The name of the Logstore that receives NAS logs.
- project String
- The name of the project that receives NAS logs.
- region String
- The Simple Log Service region of the log project.
- role
Arn String - The ARN of the service role used by NAS to deliver logs to Simple Log Service.
- file
System stringId - The ID of the file system for which log delivery is enabled.
- logstore string
- The name of the Logstore that receives NAS logs.
- project string
- The name of the project that receives NAS logs.
- region string
- The Simple Log Service region of the log project.
- role
Arn string - The ARN of the service role used by NAS to deliver logs to Simple Log Service.
- file_
system_ strid - The ID of the file system for which log delivery is enabled.
- logstore str
- The name of the Logstore that receives NAS logs.
- project str
- The name of the project that receives NAS logs.
- region str
- The Simple Log Service region of the log project.
- role_
arn str - The ARN of the service role used by NAS to deliver logs to Simple Log Service.
- file
System StringId - The ID of the file system for which log delivery is enabled.
- logstore String
- The name of the Logstore that receives NAS logs.
- project String
- The name of the project that receives NAS logs.
- region String
- The Simple Log Service region of the log project.
- role
Arn String - The ARN of the service role used by NAS to deliver logs to Simple Log Service.
Import
File Storage (NAS) Log Analysis can be imported using the id, e.g.
$ pulumi import alicloud:nas/logAnalysis:LogAnalysis example <file_system_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
published on Monday, Aug 24, 2026 by Pulumi