Viewing docs for Alibaba Cloud v3.106.0
published on Monday, Aug 24, 2026 by Pulumi
published on Monday, Aug 24, 2026 by Pulumi
Viewing docs for Alibaba Cloud v3.106.0
published on Monday, Aug 24, 2026 by Pulumi
published on Monday, Aug 24, 2026 by Pulumi
This data source provides Cr Artifact Subscription Rule available to the user.What is Artifact Subscription Rule
NOTE: Available since v1.287.0.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = alicloud.cr.getArtifactSubscriptionRules({
instanceId: "cri-xxx",
enableDetails: true,
});
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.cr.get_artifact_subscription_rules(instance_id="cri-xxx",
enable_details=True)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cr.GetArtifactSubscriptionRules(ctx, &cr.GetArtifactSubscriptionRulesArgs{
InstanceId: "cri-xxx",
EnableDetails: pulumi.BoolRef(true),
}, nil)
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 example = AliCloud.CR.GetArtifactSubscriptionRules.Invoke(new()
{
InstanceId = "cri-xxx",
EnableDetails = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cr.CrFunctions;
import com.pulumi.alicloud.cr.inputs.GetArtifactSubscriptionRulesArgs;
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) {
final var example = CrFunctions.getArtifactSubscriptionRules(GetArtifactSubscriptionRulesArgs.builder()
.instanceId("cri-xxx")
.enableDetails(true)
.build());
}
}
variables:
example:
fn::invoke:
function: alicloud:cr:getArtifactSubscriptionRules
arguments:
instanceId: cri-xxx
enableDetails: true
pulumi {
required_providers {
alicloud = {
source = "pulumi/alicloud"
}
}
}
data "alicloud_cr_getartifactsubscriptionrules" "example" {
instance_id = "cri-xxx"
enable_details = true
}
Using getArtifactSubscriptionRules
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 getArtifactSubscriptionRules(args: GetArtifactSubscriptionRulesArgs, opts?: InvokeOptions): Promise<GetArtifactSubscriptionRulesResult>
function getArtifactSubscriptionRulesOutput(args: GetArtifactSubscriptionRulesOutputArgs, opts?: InvokeOutputOptions): Output<GetArtifactSubscriptionRulesResult>def get_artifact_subscription_rules(enable_details: Optional[bool] = None,
ids: Optional[Sequence[str]] = None,
instance_id: Optional[str] = None,
namespace_name: Optional[str] = None,
output_file: Optional[str] = None,
repo_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetArtifactSubscriptionRulesResult
def get_artifact_subscription_rules_output(enable_details: pulumi.Input[Optional[bool]] = None,
ids: pulumi.Input[Optional[Sequence[pulumi.Input[str]]]] = None,
instance_id: pulumi.Input[Optional[str]] = None,
namespace_name: pulumi.Input[Optional[str]] = None,
output_file: pulumi.Input[Optional[str]] = None,
repo_name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetArtifactSubscriptionRulesResult]func GetArtifactSubscriptionRules(ctx *Context, args *GetArtifactSubscriptionRulesArgs, opts ...InvokeOption) (*GetArtifactSubscriptionRulesResult, error)
func GetArtifactSubscriptionRulesOutput(ctx *Context, args *GetArtifactSubscriptionRulesOutputArgs, opts ...InvokeOption) GetArtifactSubscriptionRulesResultOutput> Note: This function is named GetArtifactSubscriptionRules in the Go SDK.
public static class GetArtifactSubscriptionRules
{
public static Task<GetArtifactSubscriptionRulesResult> InvokeAsync(GetArtifactSubscriptionRulesArgs args, InvokeOptions? opts = null)
public static Output<GetArtifactSubscriptionRulesResult> Invoke(GetArtifactSubscriptionRulesInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetArtifactSubscriptionRulesResult> Invoke(GetArtifactSubscriptionRulesInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetArtifactSubscriptionRulesResult> getArtifactSubscriptionRules(GetArtifactSubscriptionRulesArgs args, InvokeOptions options)
public static Output<GetArtifactSubscriptionRulesResult> getArtifactSubscriptionRules(GetArtifactSubscriptionRulesArgs args, InvokeOptions options)
public static Output<GetArtifactSubscriptionRulesResult> getArtifactSubscriptionRules(GetArtifactSubscriptionRulesArgs args, InvokeOutputOptions options)
fn::invoke:
function: alicloud:cr/getArtifactSubscriptionRules:getArtifactSubscriptionRules
arguments:
# arguments dictionarydata "alicloud_cr_get_artifact_subscription_rules" "name" {
# arguments
}The following arguments are supported:
- Instance
Id string - Instance ID
- Enable
Details bool - Default to
false. Set it totruecan output more details about resource attributes. - Ids List<string>
- A list of Artifact Subscription Rule IDs. The value is formulated as
<instance_id>:<artifact_subscription_rule_id>. - Namespace
Name string - Namespace name
- Output
File string - File name where to save data source results (after running
pulumi preview). - Repo
Name string - Repository name
- Instance
Id string - Instance ID
- Enable
Details bool - Default to
false. Set it totruecan output more details about resource attributes. - Ids []string
- A list of Artifact Subscription Rule IDs. The value is formulated as
<instance_id>:<artifact_subscription_rule_id>. - Namespace
Name string - Namespace name
- Output
File string - File name where to save data source results (after running
pulumi preview). - Repo
Name string - Repository name
- instance_
id string - Instance ID
- enable_
details bool - Default to
false. Set it totruecan output more details about resource attributes. - ids list(string)
- A list of Artifact Subscription Rule IDs. The value is formulated as
<instance_id>:<artifact_subscription_rule_id>. - namespace_
name string - Namespace name
- output_
file string - File name where to save data source results (after running
pulumi preview). - repo_
name string - Repository name
- instance
Id String - Instance ID
- enable
Details Boolean - Default to
false. Set it totruecan output more details about resource attributes. - ids List<String>
- A list of Artifact Subscription Rule IDs. The value is formulated as
<instance_id>:<artifact_subscription_rule_id>. - namespace
Name String - Namespace name
- output
File String - File name where to save data source results (after running
pulumi preview). - repo
Name String - Repository name
- instance
Id string - Instance ID
- enable
Details boolean - Default to
false. Set it totruecan output more details about resource attributes. - ids string[]
- A list of Artifact Subscription Rule IDs. The value is formulated as
<instance_id>:<artifact_subscription_rule_id>. - namespace
Name string - Namespace name
- output
File string - File name where to save data source results (after running
pulumi preview). - repo
Name string - Repository name
- instance_
id str - Instance ID
- enable_
details bool - Default to
false. Set it totruecan output more details about resource attributes. - ids Sequence[str]
- A list of Artifact Subscription Rule IDs. The value is formulated as
<instance_id>:<artifact_subscription_rule_id>. - namespace_
name str - Namespace name
- output_
file str - File name where to save data source results (after running
pulumi preview). - repo_
name str - Repository name
- instance
Id String - Instance ID
- enable
Details Boolean - Default to
false. Set it totruecan output more details about resource attributes. - ids List<String>
- A list of Artifact Subscription Rule IDs. The value is formulated as
<instance_id>:<artifact_subscription_rule_id>. - namespace
Name String - Namespace name
- output
File String - File name where to save data source results (after running
pulumi preview). - repo
Name String - Repository name
getArtifactSubscriptionRules Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- A list of Artifact Subscription Rule IDs.
- Instance
Id string - Instance ID.
- Rules
List<Pulumi.
Ali Cloud. CR. Outputs. Get Artifact Subscription Rules Rule> - A list of Artifact Subscription Rule Entries. Each element contains the following attributes:
- Enable
Details bool - Namespace
Name string - Namespace name.
- Output
File string - Repo
Name string - Repository name.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- A list of Artifact Subscription Rule IDs.
- Instance
Id string - Instance ID.
- Rules
[]Get
Artifact Subscription Rules Rule - A list of Artifact Subscription Rule Entries. Each element contains the following attributes:
- Enable
Details bool - Namespace
Name string - Namespace name.
- Output
File string - Repo
Name string - Repository name.
- id string
- The provider-assigned unique ID for this managed resource.
- ids list(string)
- A list of Artifact Subscription Rule IDs.
- instance_
id string - Instance ID.
- rules list(object)
- A list of Artifact Subscription Rule Entries. Each element contains the following attributes:
- enable_
details bool - namespace_
name string - Namespace name.
- output_
file string - repo_
name string - Repository name.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of Artifact Subscription Rule IDs.
- instance
Id String - Instance ID.
- rules
List<Get
Artifact Subsiption Rules Rule> - A list of Artifact Subscription Rule Entries. Each element contains the following attributes:
- enable
Details Boolean - namespace
Name String - Namespace name.
- output
File String - repo
Name String - Repository name.
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- A list of Artifact Subscription Rule IDs.
- instance
Id string - Instance ID.
- rules
Get
Artifact Subscription Rules Rule[] - A list of Artifact Subscription Rule Entries. Each element contains the following attributes:
- enable
Details boolean - namespace
Name string - Namespace name.
- output
File string - repo
Name string - Repository name.
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- A list of Artifact Subscription Rule IDs.
- instance_
id str - Instance ID.
- rules
Sequence[Get
Artifact Subscription Rules Rule] - A list of Artifact Subscription Rule Entries. Each element contains the following attributes:
- enable_
details bool - namespace_
name str - Namespace name.
- output_
file str - repo_
name str - Repository name.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of Artifact Subscription Rule IDs.
- instance
Id String - Instance ID.
- rules List<Property Map>
- A list of Artifact Subscription Rule Entries. Each element contains the following attributes:
- enable
Details Boolean - namespace
Name String - Namespace name.
- output
File String - repo
Name String - Repository name.
Supporting Types
GetArtifactSubscriptionRulesRule
- Accelerate bool
- Whether to enable acceleration.
- Artifact
Subscription stringRule Id - The first ID of the resource.
- Create
Time string - Creation time.
- Id string
- The ID of the resource supplied above.
- Instance
Id string - Instance ID
- Modified
Time string - Modification time.
- Namespace
Name string - Namespace name
- Override bool
- Whether to override existing tags.
- Platforms List<string>
- Subscription platform list.
- Region
Id string - NOTE: This field is only available when
enableDetailsistrue. The region ID of the resource. - Repo
Name string - Repository name
- Source
Domain string - Source domain.
- Source
Namespace stringName - Source namespace name.
- Source
Provider string - Source image registry provider, e.
- Source
Repo stringName - Source repository name.
- Tag
Count int - Number of tags to subscribe.
- Tag
Regexp string - Regular expression for subscribing tags.
- Accelerate bool
- Whether to enable acceleration.
- Artifact
Subscription stringRule Id - The first ID of the resource.
- Create
Time string - Creation time.
- Id string
- The ID of the resource supplied above.
- Instance
Id string - Instance ID
- Modified
Time string - Modification time.
- Namespace
Name string - Namespace name
- Override bool
- Whether to override existing tags.
- Platforms []string
- Subscription platform list.
- Region
Id string - NOTE: This field is only available when
enableDetailsistrue. The region ID of the resource. - Repo
Name string - Repository name
- Source
Domain string - Source domain.
- Source
Namespace stringName - Source namespace name.
- Source
Provider string - Source image registry provider, e.
- Source
Repo stringName - Source repository name.
- Tag
Count int - Number of tags to subscribe.
- Tag
Regexp string - Regular expression for subscribing tags.
- accelerate bool
- Whether to enable acceleration.
- artifact_
subscription_ stringrule_ id - The first ID of the resource.
- create_
time string - Creation time.
- id string
- The ID of the resource supplied above.
- instance_
id string - Instance ID
- modified_
time string - Modification time.
- namespace_
name string - Namespace name
- override bool
- Whether to override existing tags.
- platforms list(string)
- Subscription platform list.
- region_
id string - NOTE: This field is only available when
enableDetailsistrue. The region ID of the resource. - repo_
name string - Repository name
- source_
domain string - Source domain.
- source_
namespace_ stringname - Source namespace name.
- source_
provider string - Source image registry provider, e.
- source_
repo_ stringname - Source repository name.
- tag_
count number - Number of tags to subscribe.
- tag_
regexp string - Regular expression for subscribing tags.
- accelerate Boolean
- Whether to enable acceleration.
- artifact
Subscription StringRule Id - The first ID of the resource.
- create
Time String - Creation time.
- id String
- The ID of the resource supplied above.
- instance
Id String - Instance ID
- modified
Time String - Modification time.
- namespace
Name String - Namespace name
- override Boolean
- Whether to override existing tags.
- platforms List<String>
- Subscription platform list.
- region
Id String - NOTE: This field is only available when
enableDetailsistrue. The region ID of the resource. - repo
Name String - Repository name
- source
Domain String - Source domain.
- source
Namespace StringName - Source namespace name.
- source
Provider String - Source image registry provider, e.
- source
Repo StringName - Source repository name.
- tag
Count Integer - Number of tags to subscribe.
- tag
Regexp String - Regular expression for subscribing tags.
- accelerate boolean
- Whether to enable acceleration.
- artifact
Subscription stringRule Id - The first ID of the resource.
- create
Time string - Creation time.
- id string
- The ID of the resource supplied above.
- instance
Id string - Instance ID
- modified
Time string - Modification time.
- namespace
Name string - Namespace name
- override boolean
- Whether to override existing tags.
- platforms string[]
- Subscription platform list.
- region
Id string - NOTE: This field is only available when
enableDetailsistrue. The region ID of the resource. - repo
Name string - Repository name
- source
Domain string - Source domain.
- source
Namespace stringName - Source namespace name.
- source
Provider string - Source image registry provider, e.
- source
Repo stringName - Source repository name.
- tag
Count number - Number of tags to subscribe.
- tag
Regexp string - Regular expression for subscribing tags.
- accelerate bool
- Whether to enable acceleration.
- artifact_
subscription_ strrule_ id - The first ID of the resource.
- create_
time str - Creation time.
- id str
- The ID of the resource supplied above.
- instance_
id str - Instance ID
- modified_
time str - Modification time.
- namespace_
name str - Namespace name
- override bool
- Whether to override existing tags.
- platforms Sequence[str]
- Subscription platform list.
- region_
id str - NOTE: This field is only available when
enableDetailsistrue. The region ID of the resource. - repo_
name str - Repository name
- source_
domain str - Source domain.
- source_
namespace_ strname - Source namespace name.
- source_
provider str - Source image registry provider, e.
- source_
repo_ strname - Source repository name.
- tag_
count int - Number of tags to subscribe.
- tag_
regexp str - Regular expression for subscribing tags.
- accelerate Boolean
- Whether to enable acceleration.
- artifact
Subscription StringRule Id - The first ID of the resource.
- create
Time String - Creation time.
- id String
- The ID of the resource supplied above.
- instance
Id String - Instance ID
- modified
Time String - Modification time.
- namespace
Name String - Namespace name
- override Boolean
- Whether to override existing tags.
- platforms List<String>
- Subscription platform list.
- region
Id String - NOTE: This field is only available when
enableDetailsistrue. The region ID of the resource. - repo
Name String - Repository name
- source
Domain String - Source domain.
- source
Namespace StringName - Source namespace name.
- source
Provider String - Source image registry provider, e.
- source
Repo StringName - Source repository name.
- tag
Count Number - Number of tags to subscribe.
- tag
Regexp String - Regular expression for subscribing tags.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
Viewing docs for Alibaba Cloud v3.106.0
published on Monday, Aug 24, 2026 by Pulumi
published on Monday, Aug 24, 2026 by Pulumi