opentelekomcloud.AsmServiceMeshV1
Explore with Pulumi AI
Up-to-date reference of API arguments for ASM service mesh you can get at documentation portal
Manages an ASM Service Mesh v1 resource within OpenTelekomCloud.
Example Usage
Basic ASM service mesh
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const clusterId = config.requireObject("clusterId");
const nodeId = config.requireObject("nodeId");
const mesh1 = new opentelekomcloud.AsmServiceMeshV1("mesh1", {
type: "InCluster",
version: "1.18.7-r5",
clusters: [{
clusterId: clusterId,
installationNodes: [nodeId],
}],
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
cluster_id = config.require_object("clusterId")
node_id = config.require_object("nodeId")
mesh1 = opentelekomcloud.AsmServiceMeshV1("mesh1",
type="InCluster",
version="1.18.7-r5",
clusters=[{
"cluster_id": cluster_id,
"installation_nodes": [node_id],
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
clusterId := cfg.RequireObject("clusterId")
nodeId := cfg.RequireObject("nodeId")
_, err := opentelekomcloud.NewAsmServiceMeshV1(ctx, "mesh1", &opentelekomcloud.AsmServiceMeshV1Args{
Type: pulumi.String("InCluster"),
Version: pulumi.String("1.18.7-r5"),
Clusters: opentelekomcloud.AsmServiceMeshV1ClusterArray{
&opentelekomcloud.AsmServiceMeshV1ClusterArgs{
ClusterId: pulumi.Any(clusterId),
InstallationNodes: pulumi.StringArray{
nodeId,
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var clusterId = config.RequireObject<dynamic>("clusterId");
var nodeId = config.RequireObject<dynamic>("nodeId");
var mesh1 = new Opentelekomcloud.AsmServiceMeshV1("mesh1", new()
{
Type = "InCluster",
Version = "1.18.7-r5",
Clusters = new[]
{
new Opentelekomcloud.Inputs.AsmServiceMeshV1ClusterArgs
{
ClusterId = clusterId,
InstallationNodes = new[]
{
nodeId,
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.AsmServiceMeshV1;
import com.pulumi.opentelekomcloud.AsmServiceMeshV1Args;
import com.pulumi.opentelekomcloud.inputs.AsmServiceMeshV1ClusterArgs;
import java.util.List;
import java.util.ArrayList;
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 config = ctx.config();
final var clusterId = config.get("clusterId");
final var nodeId = config.get("nodeId");
var mesh1 = new AsmServiceMeshV1("mesh1", AsmServiceMeshV1Args.builder()
.type("InCluster")
.version("1.18.7-r5")
.clusters(AsmServiceMeshV1ClusterArgs.builder()
.clusterId(clusterId)
.installationNodes(nodeId)
.build())
.build());
}
}
configuration:
clusterId:
type: dynamic
nodeId:
type: dynamic
resources:
mesh1:
type: opentelekomcloud:AsmServiceMeshV1
properties:
type: InCluster
version: 1.18.7-r5
clusters:
- clusterId: ${clusterId}
installationNodes:
- ${nodeId}
Notes
But due to some attributes missing from the API response, it’s required to ignore changes as below:
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
// ...
const mesh1 = new opentelekomcloud.AsmServiceMeshV1("mesh1", {});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
# ...
mesh1 = opentelekomcloud.AsmServiceMeshV1("mesh1")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// ...
_, err := opentelekomcloud.NewAsmServiceMeshV1(ctx, "mesh1", nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
// ...
var mesh1 = new Opentelekomcloud.AsmServiceMeshV1("mesh1");
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.AsmServiceMeshV1;
import java.util.List;
import java.util.ArrayList;
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 mesh1 = new AsmServiceMeshV1("mesh1");
}
}
resources:
mesh1:
type: opentelekomcloud:AsmServiceMeshV1
Create AsmServiceMeshV1 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AsmServiceMeshV1(name: string, args: AsmServiceMeshV1Args, opts?: CustomResourceOptions);
@overload
def AsmServiceMeshV1(resource_name: str,
args: AsmServiceMeshV1Args,
opts: Optional[ResourceOptions] = None)
@overload
def AsmServiceMeshV1(resource_name: str,
opts: Optional[ResourceOptions] = None,
clusters: Optional[Sequence[AsmServiceMeshV1ClusterArgs]] = None,
type: Optional[str] = None,
version: Optional[str] = None,
asm_service_mesh_v1_id: Optional[str] = None,
ipv6_enable: Optional[bool] = None,
name: Optional[str] = None,
proxy_config: Optional[AsmServiceMeshV1ProxyConfigArgs] = None,
telemetry_config_tracing: Optional[AsmServiceMeshV1TelemetryConfigTracingArgs] = None,
timeouts: Optional[AsmServiceMeshV1TimeoutsArgs] = None)
func NewAsmServiceMeshV1(ctx *Context, name string, args AsmServiceMeshV1Args, opts ...ResourceOption) (*AsmServiceMeshV1, error)
public AsmServiceMeshV1(string name, AsmServiceMeshV1Args args, CustomResourceOptions? opts = null)
public AsmServiceMeshV1(String name, AsmServiceMeshV1Args args)
public AsmServiceMeshV1(String name, AsmServiceMeshV1Args args, CustomResourceOptions options)
type: opentelekomcloud:AsmServiceMeshV1
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AsmServiceMeshV1Args
- 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 AsmServiceMeshV1Args
- 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 AsmServiceMeshV1Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AsmServiceMeshV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AsmServiceMeshV1Args
- 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 asmServiceMeshV1Resource = new Opentelekomcloud.AsmServiceMeshV1("asmServiceMeshV1Resource", new()
{
Clusters = new[]
{
new Opentelekomcloud.Inputs.AsmServiceMeshV1ClusterArgs
{
ClusterId = "string",
InstallationNodes = new[]
{
"string",
},
InjectionNamespaces = new[]
{
"string",
},
},
},
Type = "string",
Version = "string",
AsmServiceMeshV1Id = "string",
Ipv6Enable = false,
Name = "string",
ProxyConfig = new Opentelekomcloud.Inputs.AsmServiceMeshV1ProxyConfigArgs
{
ExcludeInboundPorts = "string",
ExcludeIpRanges = "string",
ExcludeOutboundPorts = "string",
IncludeInboundPorts = "string",
IncludeIpRanges = "string",
IncludeOutboundPorts = "string",
},
TelemetryConfigTracing = new Opentelekomcloud.Inputs.AsmServiceMeshV1TelemetryConfigTracingArgs
{
DefaultProviders = new[]
{
"string",
},
ExtensionProviders = new[]
{
new Opentelekomcloud.Inputs.AsmServiceMeshV1TelemetryConfigTracingExtensionProviderArgs
{
Name = "string",
ZipkinServiceAddr = "string",
ZipkinServicePort = 0,
},
},
RandomSamplingPercentage = 0,
},
Timeouts = new Opentelekomcloud.Inputs.AsmServiceMeshV1TimeoutsArgs
{
Create = "string",
Delete = "string",
},
});
example, err := opentelekomcloud.NewAsmServiceMeshV1(ctx, "asmServiceMeshV1Resource", &opentelekomcloud.AsmServiceMeshV1Args{
Clusters: opentelekomcloud.AsmServiceMeshV1ClusterArray{
&opentelekomcloud.AsmServiceMeshV1ClusterArgs{
ClusterId: pulumi.String("string"),
InstallationNodes: pulumi.StringArray{
pulumi.String("string"),
},
InjectionNamespaces: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Type: pulumi.String("string"),
Version: pulumi.String("string"),
AsmServiceMeshV1Id: pulumi.String("string"),
Ipv6Enable: pulumi.Bool(false),
Name: pulumi.String("string"),
ProxyConfig: &opentelekomcloud.AsmServiceMeshV1ProxyConfigArgs{
ExcludeInboundPorts: pulumi.String("string"),
ExcludeIpRanges: pulumi.String("string"),
ExcludeOutboundPorts: pulumi.String("string"),
IncludeInboundPorts: pulumi.String("string"),
IncludeIpRanges: pulumi.String("string"),
IncludeOutboundPorts: pulumi.String("string"),
},
TelemetryConfigTracing: &opentelekomcloud.AsmServiceMeshV1TelemetryConfigTracingArgs{
DefaultProviders: pulumi.StringArray{
pulumi.String("string"),
},
ExtensionProviders: opentelekomcloud.AsmServiceMeshV1TelemetryConfigTracingExtensionProviderArray{
&opentelekomcloud.AsmServiceMeshV1TelemetryConfigTracingExtensionProviderArgs{
Name: pulumi.String("string"),
ZipkinServiceAddr: pulumi.String("string"),
ZipkinServicePort: pulumi.Float64(0),
},
},
RandomSamplingPercentage: pulumi.Float64(0),
},
Timeouts: &opentelekomcloud.AsmServiceMeshV1TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
})
var asmServiceMeshV1Resource = new AsmServiceMeshV1("asmServiceMeshV1Resource", AsmServiceMeshV1Args.builder()
.clusters(AsmServiceMeshV1ClusterArgs.builder()
.clusterId("string")
.installationNodes("string")
.injectionNamespaces("string")
.build())
.type("string")
.version("string")
.asmServiceMeshV1Id("string")
.ipv6Enable(false)
.name("string")
.proxyConfig(AsmServiceMeshV1ProxyConfigArgs.builder()
.excludeInboundPorts("string")
.excludeIpRanges("string")
.excludeOutboundPorts("string")
.includeInboundPorts("string")
.includeIpRanges("string")
.includeOutboundPorts("string")
.build())
.telemetryConfigTracing(AsmServiceMeshV1TelemetryConfigTracingArgs.builder()
.defaultProviders("string")
.extensionProviders(AsmServiceMeshV1TelemetryConfigTracingExtensionProviderArgs.builder()
.name("string")
.zipkinServiceAddr("string")
.zipkinServicePort(0.0)
.build())
.randomSamplingPercentage(0.0)
.build())
.timeouts(AsmServiceMeshV1TimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.build());
asm_service_mesh_v1_resource = opentelekomcloud.AsmServiceMeshV1("asmServiceMeshV1Resource",
clusters=[{
"cluster_id": "string",
"installation_nodes": ["string"],
"injection_namespaces": ["string"],
}],
type="string",
version="string",
asm_service_mesh_v1_id="string",
ipv6_enable=False,
name="string",
proxy_config={
"exclude_inbound_ports": "string",
"exclude_ip_ranges": "string",
"exclude_outbound_ports": "string",
"include_inbound_ports": "string",
"include_ip_ranges": "string",
"include_outbound_ports": "string",
},
telemetry_config_tracing={
"default_providers": ["string"],
"extension_providers": [{
"name": "string",
"zipkin_service_addr": "string",
"zipkin_service_port": 0,
}],
"random_sampling_percentage": 0,
},
timeouts={
"create": "string",
"delete": "string",
})
const asmServiceMeshV1Resource = new opentelekomcloud.AsmServiceMeshV1("asmServiceMeshV1Resource", {
clusters: [{
clusterId: "string",
installationNodes: ["string"],
injectionNamespaces: ["string"],
}],
type: "string",
version: "string",
asmServiceMeshV1Id: "string",
ipv6Enable: false,
name: "string",
proxyConfig: {
excludeInboundPorts: "string",
excludeIpRanges: "string",
excludeOutboundPorts: "string",
includeInboundPorts: "string",
includeIpRanges: "string",
includeOutboundPorts: "string",
},
telemetryConfigTracing: {
defaultProviders: ["string"],
extensionProviders: [{
name: "string",
zipkinServiceAddr: "string",
zipkinServicePort: 0,
}],
randomSamplingPercentage: 0,
},
timeouts: {
create: "string",
"delete": "string",
},
});
type: opentelekomcloud:AsmServiceMeshV1
properties:
asmServiceMeshV1Id: string
clusters:
- clusterId: string
injectionNamespaces:
- string
installationNodes:
- string
ipv6Enable: false
name: string
proxyConfig:
excludeInboundPorts: string
excludeIpRanges: string
excludeOutboundPorts: string
includeInboundPorts: string
includeIpRanges: string
includeOutboundPorts: string
telemetryConfigTracing:
defaultProviders:
- string
extensionProviders:
- name: string
zipkinServiceAddr: string
zipkinServicePort: 0
randomSamplingPercentage: 0
timeouts:
create: string
delete: string
type: string
version: string
AsmServiceMeshV1 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 AsmServiceMeshV1 resource accepts the following input properties:
- Clusters
List<Asm
Service Mesh V1Cluster> - Specifies the cluster information in the service mesh. The clusters structure is documented below.
- Type string
- Specifies the service mesh type. Supported value:
InCluster
(service mesh with an in-cluster control plane). The value isInCluster
for the service mesh of the Basic edition. - Version string
- Specifies the service mesh version.
- Asm
Service stringMesh V1Id - Service Mesh ID.
- Ipv6Enable bool
- Specifies whether the service mesh supports IPv6.
- Name string
- Specifies the service mesh name. The name must be 4 to 64 characters long, start with a lowercase letter and not end with a hyphen (-). Only lowercase letters, digits, and hyphens (-) are allowed.
- Proxy
Config AsmService Mesh V1Proxy Config - Specifies the data plane configuration of the service mesh. The proxy_config structure is documented below.
- Telemetry
Config AsmTracing Service Mesh V1Telemetry Config Tracing - Specifies the observability/tracing configuration, which is used to report traces in the service mesh. The telemetry_config_tracing structure is documented below.
- Timeouts
Asm
Service Mesh V1Timeouts
- Clusters
[]Asm
Service Mesh V1Cluster Args - Specifies the cluster information in the service mesh. The clusters structure is documented below.
- Type string
- Specifies the service mesh type. Supported value:
InCluster
(service mesh with an in-cluster control plane). The value isInCluster
for the service mesh of the Basic edition. - Version string
- Specifies the service mesh version.
- Asm
Service stringMesh V1Id - Service Mesh ID.
- Ipv6Enable bool
- Specifies whether the service mesh supports IPv6.
- Name string
- Specifies the service mesh name. The name must be 4 to 64 characters long, start with a lowercase letter and not end with a hyphen (-). Only lowercase letters, digits, and hyphens (-) are allowed.
- Proxy
Config AsmService Mesh V1Proxy Config Args - Specifies the data plane configuration of the service mesh. The proxy_config structure is documented below.
- Telemetry
Config AsmTracing Service Mesh V1Telemetry Config Tracing Args - Specifies the observability/tracing configuration, which is used to report traces in the service mesh. The telemetry_config_tracing structure is documented below.
- Timeouts
Asm
Service Mesh V1Timeouts Args
- clusters
List<Asm
Service Mesh V1Cluster> - Specifies the cluster information in the service mesh. The clusters structure is documented below.
- type String
- Specifies the service mesh type. Supported value:
InCluster
(service mesh with an in-cluster control plane). The value isInCluster
for the service mesh of the Basic edition. - version String
- Specifies the service mesh version.
- asm
Service StringMesh V1Id - Service Mesh ID.
- ipv6Enable Boolean
- Specifies whether the service mesh supports IPv6.
- name String
- Specifies the service mesh name. The name must be 4 to 64 characters long, start with a lowercase letter and not end with a hyphen (-). Only lowercase letters, digits, and hyphens (-) are allowed.
- proxy
Config AsmService Mesh V1Proxy Config - Specifies the data plane configuration of the service mesh. The proxy_config structure is documented below.
- telemetry
Config AsmTracing Service Mesh V1Telemetry Config Tracing - Specifies the observability/tracing configuration, which is used to report traces in the service mesh. The telemetry_config_tracing structure is documented below.
- timeouts
Asm
Service Mesh V1Timeouts
- clusters
Asm
Service Mesh V1Cluster[] - Specifies the cluster information in the service mesh. The clusters structure is documented below.
- type string
- Specifies the service mesh type. Supported value:
InCluster
(service mesh with an in-cluster control plane). The value isInCluster
for the service mesh of the Basic edition. - version string
- Specifies the service mesh version.
- asm
Service stringMesh V1Id - Service Mesh ID.
- ipv6Enable boolean
- Specifies whether the service mesh supports IPv6.
- name string
- Specifies the service mesh name. The name must be 4 to 64 characters long, start with a lowercase letter and not end with a hyphen (-). Only lowercase letters, digits, and hyphens (-) are allowed.
- proxy
Config AsmService Mesh V1Proxy Config - Specifies the data plane configuration of the service mesh. The proxy_config structure is documented below.
- telemetry
Config AsmTracing Service Mesh V1Telemetry Config Tracing - Specifies the observability/tracing configuration, which is used to report traces in the service mesh. The telemetry_config_tracing structure is documented below.
- timeouts
Asm
Service Mesh V1Timeouts
- clusters
Sequence[Asm
Service Mesh V1Cluster Args] - Specifies the cluster information in the service mesh. The clusters structure is documented below.
- type str
- Specifies the service mesh type. Supported value:
InCluster
(service mesh with an in-cluster control plane). The value isInCluster
for the service mesh of the Basic edition. - version str
- Specifies the service mesh version.
- asm_
service_ strmesh_ v1_ id - Service Mesh ID.
- ipv6_
enable bool - Specifies whether the service mesh supports IPv6.
- name str
- Specifies the service mesh name. The name must be 4 to 64 characters long, start with a lowercase letter and not end with a hyphen (-). Only lowercase letters, digits, and hyphens (-) are allowed.
- proxy_
config AsmService Mesh V1Proxy Config Args - Specifies the data plane configuration of the service mesh. The proxy_config structure is documented below.
- telemetry_
config_ Asmtracing Service Mesh V1Telemetry Config Tracing Args - Specifies the observability/tracing configuration, which is used to report traces in the service mesh. The telemetry_config_tracing structure is documented below.
- timeouts
Asm
Service Mesh V1Timeouts Args
- clusters List<Property Map>
- Specifies the cluster information in the service mesh. The clusters structure is documented below.
- type String
- Specifies the service mesh type. Supported value:
InCluster
(service mesh with an in-cluster control plane). The value isInCluster
for the service mesh of the Basic edition. - version String
- Specifies the service mesh version.
- asm
Service StringMesh V1Id - Service Mesh ID.
- ipv6Enable Boolean
- Specifies whether the service mesh supports IPv6.
- name String
- Specifies the service mesh name. The name must be 4 to 64 characters long, start with a lowercase letter and not end with a hyphen (-). Only lowercase letters, digits, and hyphens (-) are allowed.
- proxy
Config Property Map - Specifies the data plane configuration of the service mesh. The proxy_config structure is documented below.
- telemetry
Config Property MapTracing - Specifies the observability/tracing configuration, which is used to report traces in the service mesh. The telemetry_config_tracing structure is documented below.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the AsmServiceMeshV1 resource produces the following output properties:
- Cluster
Ids List<string> - Indicates the cluster id of CCE clusters associated with service mesh.
- Creation
Timestamp string - Indicates the time when the service mesh was created..
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Indicates the service mesh status. The value can be:
Running
,Creating
,CreateFailed
,Deleting
,DeleteFailed
,Upgrading
,UpgradeFailed
,RollingBack
,RollbackFailed
.
- Cluster
Ids []string - Indicates the cluster id of CCE clusters associated with service mesh.
- Creation
Timestamp string - Indicates the time when the service mesh was created..
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Indicates the service mesh status. The value can be:
Running
,Creating
,CreateFailed
,Deleting
,DeleteFailed
,Upgrading
,UpgradeFailed
,RollingBack
,RollbackFailed
.
- cluster
Ids List<String> - Indicates the cluster id of CCE clusters associated with service mesh.
- creation
Timestamp String - Indicates the time when the service mesh was created..
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- Indicates the service mesh status. The value can be:
Running
,Creating
,CreateFailed
,Deleting
,DeleteFailed
,Upgrading
,UpgradeFailed
,RollingBack
,RollbackFailed
.
- cluster
Ids string[] - Indicates the cluster id of CCE clusters associated with service mesh.
- creation
Timestamp string - Indicates the time when the service mesh was created..
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- Indicates the service mesh status. The value can be:
Running
,Creating
,CreateFailed
,Deleting
,DeleteFailed
,Upgrading
,UpgradeFailed
,RollingBack
,RollbackFailed
.
- cluster_
ids Sequence[str] - Indicates the cluster id of CCE clusters associated with service mesh.
- creation_
timestamp str - Indicates the time when the service mesh was created..
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- Indicates the service mesh status. The value can be:
Running
,Creating
,CreateFailed
,Deleting
,DeleteFailed
,Upgrading
,UpgradeFailed
,RollingBack
,RollbackFailed
.
- cluster
Ids List<String> - Indicates the cluster id of CCE clusters associated with service mesh.
- creation
Timestamp String - Indicates the time when the service mesh was created..
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- Indicates the service mesh status. The value can be:
Running
,Creating
,CreateFailed
,Deleting
,DeleteFailed
,Upgrading
,UpgradeFailed
,RollingBack
,RollbackFailed
.
Look up Existing AsmServiceMeshV1 Resource
Get an existing AsmServiceMeshV1 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?: AsmServiceMeshV1State, opts?: CustomResourceOptions): AsmServiceMeshV1
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
asm_service_mesh_v1_id: Optional[str] = None,
cluster_ids: Optional[Sequence[str]] = None,
clusters: Optional[Sequence[AsmServiceMeshV1ClusterArgs]] = None,
creation_timestamp: Optional[str] = None,
ipv6_enable: Optional[bool] = None,
name: Optional[str] = None,
proxy_config: Optional[AsmServiceMeshV1ProxyConfigArgs] = None,
status: Optional[str] = None,
telemetry_config_tracing: Optional[AsmServiceMeshV1TelemetryConfigTracingArgs] = None,
timeouts: Optional[AsmServiceMeshV1TimeoutsArgs] = None,
type: Optional[str] = None,
version: Optional[str] = None) -> AsmServiceMeshV1
func GetAsmServiceMeshV1(ctx *Context, name string, id IDInput, state *AsmServiceMeshV1State, opts ...ResourceOption) (*AsmServiceMeshV1, error)
public static AsmServiceMeshV1 Get(string name, Input<string> id, AsmServiceMeshV1State? state, CustomResourceOptions? opts = null)
public static AsmServiceMeshV1 get(String name, Output<String> id, AsmServiceMeshV1State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:AsmServiceMeshV1 get: 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.
- Asm
Service stringMesh V1Id - Service Mesh ID.
- Cluster
Ids List<string> - Indicates the cluster id of CCE clusters associated with service mesh.
- Clusters
List<Asm
Service Mesh V1Cluster> - Specifies the cluster information in the service mesh. The clusters structure is documented below.
- Creation
Timestamp string - Indicates the time when the service mesh was created..
- Ipv6Enable bool
- Specifies whether the service mesh supports IPv6.
- Name string
- Specifies the service mesh name. The name must be 4 to 64 characters long, start with a lowercase letter and not end with a hyphen (-). Only lowercase letters, digits, and hyphens (-) are allowed.
- Proxy
Config AsmService Mesh V1Proxy Config - Specifies the data plane configuration of the service mesh. The proxy_config structure is documented below.
- Status string
- Indicates the service mesh status. The value can be:
Running
,Creating
,CreateFailed
,Deleting
,DeleteFailed
,Upgrading
,UpgradeFailed
,RollingBack
,RollbackFailed
. - Telemetry
Config AsmTracing Service Mesh V1Telemetry Config Tracing - Specifies the observability/tracing configuration, which is used to report traces in the service mesh. The telemetry_config_tracing structure is documented below.
- Timeouts
Asm
Service Mesh V1Timeouts - Type string
- Specifies the service mesh type. Supported value:
InCluster
(service mesh with an in-cluster control plane). The value isInCluster
for the service mesh of the Basic edition. - Version string
- Specifies the service mesh version.
- Asm
Service stringMesh V1Id - Service Mesh ID.
- Cluster
Ids []string - Indicates the cluster id of CCE clusters associated with service mesh.
- Clusters
[]Asm
Service Mesh V1Cluster Args - Specifies the cluster information in the service mesh. The clusters structure is documented below.
- Creation
Timestamp string - Indicates the time when the service mesh was created..
- Ipv6Enable bool
- Specifies whether the service mesh supports IPv6.
- Name string
- Specifies the service mesh name. The name must be 4 to 64 characters long, start with a lowercase letter and not end with a hyphen (-). Only lowercase letters, digits, and hyphens (-) are allowed.
- Proxy
Config AsmService Mesh V1Proxy Config Args - Specifies the data plane configuration of the service mesh. The proxy_config structure is documented below.
- Status string
- Indicates the service mesh status. The value can be:
Running
,Creating
,CreateFailed
,Deleting
,DeleteFailed
,Upgrading
,UpgradeFailed
,RollingBack
,RollbackFailed
. - Telemetry
Config AsmTracing Service Mesh V1Telemetry Config Tracing Args - Specifies the observability/tracing configuration, which is used to report traces in the service mesh. The telemetry_config_tracing structure is documented below.
- Timeouts
Asm
Service Mesh V1Timeouts Args - Type string
- Specifies the service mesh type. Supported value:
InCluster
(service mesh with an in-cluster control plane). The value isInCluster
for the service mesh of the Basic edition. - Version string
- Specifies the service mesh version.
- asm
Service StringMesh V1Id - Service Mesh ID.
- cluster
Ids List<String> - Indicates the cluster id of CCE clusters associated with service mesh.
- clusters
List<Asm
Service Mesh V1Cluster> - Specifies the cluster information in the service mesh. The clusters structure is documented below.
- creation
Timestamp String - Indicates the time when the service mesh was created..
- ipv6Enable Boolean
- Specifies whether the service mesh supports IPv6.
- name String
- Specifies the service mesh name. The name must be 4 to 64 characters long, start with a lowercase letter and not end with a hyphen (-). Only lowercase letters, digits, and hyphens (-) are allowed.
- proxy
Config AsmService Mesh V1Proxy Config - Specifies the data plane configuration of the service mesh. The proxy_config structure is documented below.
- status String
- Indicates the service mesh status. The value can be:
Running
,Creating
,CreateFailed
,Deleting
,DeleteFailed
,Upgrading
,UpgradeFailed
,RollingBack
,RollbackFailed
. - telemetry
Config AsmTracing Service Mesh V1Telemetry Config Tracing - Specifies the observability/tracing configuration, which is used to report traces in the service mesh. The telemetry_config_tracing structure is documented below.
- timeouts
Asm
Service Mesh V1Timeouts - type String
- Specifies the service mesh type. Supported value:
InCluster
(service mesh with an in-cluster control plane). The value isInCluster
for the service mesh of the Basic edition. - version String
- Specifies the service mesh version.
- asm
Service stringMesh V1Id - Service Mesh ID.
- cluster
Ids string[] - Indicates the cluster id of CCE clusters associated with service mesh.
- clusters
Asm
Service Mesh V1Cluster[] - Specifies the cluster information in the service mesh. The clusters structure is documented below.
- creation
Timestamp string - Indicates the time when the service mesh was created..
- ipv6Enable boolean
- Specifies whether the service mesh supports IPv6.
- name string
- Specifies the service mesh name. The name must be 4 to 64 characters long, start with a lowercase letter and not end with a hyphen (-). Only lowercase letters, digits, and hyphens (-) are allowed.
- proxy
Config AsmService Mesh V1Proxy Config - Specifies the data plane configuration of the service mesh. The proxy_config structure is documented below.
- status string
- Indicates the service mesh status. The value can be:
Running
,Creating
,CreateFailed
,Deleting
,DeleteFailed
,Upgrading
,UpgradeFailed
,RollingBack
,RollbackFailed
. - telemetry
Config AsmTracing Service Mesh V1Telemetry Config Tracing - Specifies the observability/tracing configuration, which is used to report traces in the service mesh. The telemetry_config_tracing structure is documented below.
- timeouts
Asm
Service Mesh V1Timeouts - type string
- Specifies the service mesh type. Supported value:
InCluster
(service mesh with an in-cluster control plane). The value isInCluster
for the service mesh of the Basic edition. - version string
- Specifies the service mesh version.
- asm_
service_ strmesh_ v1_ id - Service Mesh ID.
- cluster_
ids Sequence[str] - Indicates the cluster id of CCE clusters associated with service mesh.
- clusters
Sequence[Asm
Service Mesh V1Cluster Args] - Specifies the cluster information in the service mesh. The clusters structure is documented below.
- creation_
timestamp str - Indicates the time when the service mesh was created..
- ipv6_
enable bool - Specifies whether the service mesh supports IPv6.
- name str
- Specifies the service mesh name. The name must be 4 to 64 characters long, start with a lowercase letter and not end with a hyphen (-). Only lowercase letters, digits, and hyphens (-) are allowed.
- proxy_
config AsmService Mesh V1Proxy Config Args - Specifies the data plane configuration of the service mesh. The proxy_config structure is documented below.
- status str
- Indicates the service mesh status. The value can be:
Running
,Creating
,CreateFailed
,Deleting
,DeleteFailed
,Upgrading
,UpgradeFailed
,RollingBack
,RollbackFailed
. - telemetry_
config_ Asmtracing Service Mesh V1Telemetry Config Tracing Args - Specifies the observability/tracing configuration, which is used to report traces in the service mesh. The telemetry_config_tracing structure is documented below.
- timeouts
Asm
Service Mesh V1Timeouts Args - type str
- Specifies the service mesh type. Supported value:
InCluster
(service mesh with an in-cluster control plane). The value isInCluster
for the service mesh of the Basic edition. - version str
- Specifies the service mesh version.
- asm
Service StringMesh V1Id - Service Mesh ID.
- cluster
Ids List<String> - Indicates the cluster id of CCE clusters associated with service mesh.
- clusters List<Property Map>
- Specifies the cluster information in the service mesh. The clusters structure is documented below.
- creation
Timestamp String - Indicates the time when the service mesh was created..
- ipv6Enable Boolean
- Specifies whether the service mesh supports IPv6.
- name String
- Specifies the service mesh name. The name must be 4 to 64 characters long, start with a lowercase letter and not end with a hyphen (-). Only lowercase letters, digits, and hyphens (-) are allowed.
- proxy
Config Property Map - Specifies the data plane configuration of the service mesh. The proxy_config structure is documented below.
- status String
- Indicates the service mesh status. The value can be:
Running
,Creating
,CreateFailed
,Deleting
,DeleteFailed
,Upgrading
,UpgradeFailed
,RollingBack
,RollbackFailed
. - telemetry
Config Property MapTracing - Specifies the observability/tracing configuration, which is used to report traces in the service mesh. The telemetry_config_tracing structure is documented below.
- timeouts Property Map
- type String
- Specifies the service mesh type. Supported value:
InCluster
(service mesh with an in-cluster control plane). The value isInCluster
for the service mesh of the Basic edition. - version String
- Specifies the service mesh version.
Supporting Types
AsmServiceMeshV1Cluster, AsmServiceMeshV1ClusterArgs
- Cluster
Id string - Specifies the CCE Cluster ID.
- Installation
Nodes List<string> - Specifies the node ID of nodes where service mesh components are to be installed.
- Injection
Namespaces List<string> - Specifies the name of namespaces where sidecars are to be injected.
- Cluster
Id string - Specifies the CCE Cluster ID.
- Installation
Nodes []string - Specifies the node ID of nodes where service mesh components are to be installed.
- Injection
Namespaces []string - Specifies the name of namespaces where sidecars are to be injected.
- cluster
Id String - Specifies the CCE Cluster ID.
- installation
Nodes List<String> - Specifies the node ID of nodes where service mesh components are to be installed.
- injection
Namespaces List<String> - Specifies the name of namespaces where sidecars are to be injected.
- cluster
Id string - Specifies the CCE Cluster ID.
- installation
Nodes string[] - Specifies the node ID of nodes where service mesh components are to be installed.
- injection
Namespaces string[] - Specifies the name of namespaces where sidecars are to be injected.
- cluster_
id str - Specifies the CCE Cluster ID.
- installation_
nodes Sequence[str] - Specifies the node ID of nodes where service mesh components are to be installed.
- injection_
namespaces Sequence[str] - Specifies the name of namespaces where sidecars are to be injected.
- cluster
Id String - Specifies the CCE Cluster ID.
- installation
Nodes List<String> - Specifies the node ID of nodes where service mesh components are to be installed.
- injection
Namespaces List<String> - Specifies the name of namespaces where sidecars are to be injected.
AsmServiceMeshV1ProxyConfig, AsmServiceMeshV1ProxyConfigArgs
- Exclude
Inbound stringPorts - Specifies the ports that will be excluded for inbound traffic redirection. Use commas (,) to separate the ports.
- Exclude
Ip stringRanges - Specifies the IP address ranges that will be excluded for outbound traffic redirection. Use commas (,) to separate the IP address ranges.
- Exclude
Outbound stringPorts - Specifies the ports that will be excluded for outbound traffic redirection. Use commas (,) to separate the ports.
- Include
Inbound stringPorts - Specifies the Ports that will be included for inbound traffic redirection. Use commas (,) to separate the ports.
- Include
Ip stringRanges - Specifies the IP address ranges that will be included for outbound traffic redirection. Use commas (,) to separate the IP address ranges.
- Include
Outbound stringPorts - Specifies the ports that will be included for outbound traffic redirection. Use commas (,) to separate the ports.
- Exclude
Inbound stringPorts - Specifies the ports that will be excluded for inbound traffic redirection. Use commas (,) to separate the ports.
- Exclude
Ip stringRanges - Specifies the IP address ranges that will be excluded for outbound traffic redirection. Use commas (,) to separate the IP address ranges.
- Exclude
Outbound stringPorts - Specifies the ports that will be excluded for outbound traffic redirection. Use commas (,) to separate the ports.
- Include
Inbound stringPorts - Specifies the Ports that will be included for inbound traffic redirection. Use commas (,) to separate the ports.
- Include
Ip stringRanges - Specifies the IP address ranges that will be included for outbound traffic redirection. Use commas (,) to separate the IP address ranges.
- Include
Outbound stringPorts - Specifies the ports that will be included for outbound traffic redirection. Use commas (,) to separate the ports.
- exclude
Inbound StringPorts - Specifies the ports that will be excluded for inbound traffic redirection. Use commas (,) to separate the ports.
- exclude
Ip StringRanges - Specifies the IP address ranges that will be excluded for outbound traffic redirection. Use commas (,) to separate the IP address ranges.
- exclude
Outbound StringPorts - Specifies the ports that will be excluded for outbound traffic redirection. Use commas (,) to separate the ports.
- include
Inbound StringPorts - Specifies the Ports that will be included for inbound traffic redirection. Use commas (,) to separate the ports.
- include
Ip StringRanges - Specifies the IP address ranges that will be included for outbound traffic redirection. Use commas (,) to separate the IP address ranges.
- include
Outbound StringPorts - Specifies the ports that will be included for outbound traffic redirection. Use commas (,) to separate the ports.
- exclude
Inbound stringPorts - Specifies the ports that will be excluded for inbound traffic redirection. Use commas (,) to separate the ports.
- exclude
Ip stringRanges - Specifies the IP address ranges that will be excluded for outbound traffic redirection. Use commas (,) to separate the IP address ranges.
- exclude
Outbound stringPorts - Specifies the ports that will be excluded for outbound traffic redirection. Use commas (,) to separate the ports.
- include
Inbound stringPorts - Specifies the Ports that will be included for inbound traffic redirection. Use commas (,) to separate the ports.
- include
Ip stringRanges - Specifies the IP address ranges that will be included for outbound traffic redirection. Use commas (,) to separate the IP address ranges.
- include
Outbound stringPorts - Specifies the ports that will be included for outbound traffic redirection. Use commas (,) to separate the ports.
- exclude_
inbound_ strports - Specifies the ports that will be excluded for inbound traffic redirection. Use commas (,) to separate the ports.
- exclude_
ip_ strranges - Specifies the IP address ranges that will be excluded for outbound traffic redirection. Use commas (,) to separate the IP address ranges.
- exclude_
outbound_ strports - Specifies the ports that will be excluded for outbound traffic redirection. Use commas (,) to separate the ports.
- include_
inbound_ strports - Specifies the Ports that will be included for inbound traffic redirection. Use commas (,) to separate the ports.
- include_
ip_ strranges - Specifies the IP address ranges that will be included for outbound traffic redirection. Use commas (,) to separate the IP address ranges.
- include_
outbound_ strports - Specifies the ports that will be included for outbound traffic redirection. Use commas (,) to separate the ports.
- exclude
Inbound StringPorts - Specifies the ports that will be excluded for inbound traffic redirection. Use commas (,) to separate the ports.
- exclude
Ip StringRanges - Specifies the IP address ranges that will be excluded for outbound traffic redirection. Use commas (,) to separate the IP address ranges.
- exclude
Outbound StringPorts - Specifies the ports that will be excluded for outbound traffic redirection. Use commas (,) to separate the ports.
- include
Inbound StringPorts - Specifies the Ports that will be included for inbound traffic redirection. Use commas (,) to separate the ports.
- include
Ip StringRanges - Specifies the IP address ranges that will be included for outbound traffic redirection. Use commas (,) to separate the IP address ranges.
- include
Outbound StringPorts - Specifies the ports that will be included for outbound traffic redirection. Use commas (,) to separate the ports.
AsmServiceMeshV1TelemetryConfigTracing, AsmServiceMeshV1TelemetryConfigTracingArgs
- Default
Providers List<string> - Specifies the name of the default provider that tracing reports data to, which must match the name field in
extension_providers
or use the preset providerapm-otel
of ASM. Ifapm-otel
is used, ensure that APM 2.0 is supported in the current region and the service mesh version is later than 1.18. - Extension
Providers List<AsmService Mesh V1Telemetry Config Tracing Extension Provider> - Specifies the user-defined provider. Currently, Zipkin is supported. If you configure the Zipkin provider, ensure that the service mesh version is 1.15 or later. The structure is documented below:
- Random
Sampling doublePercentage - Specifies the tracing sampling rate.
- Default
Providers []string - Specifies the name of the default provider that tracing reports data to, which must match the name field in
extension_providers
or use the preset providerapm-otel
of ASM. Ifapm-otel
is used, ensure that APM 2.0 is supported in the current region and the service mesh version is later than 1.18. - Extension
Providers []AsmService Mesh V1Telemetry Config Tracing Extension Provider - Specifies the user-defined provider. Currently, Zipkin is supported. If you configure the Zipkin provider, ensure that the service mesh version is 1.15 or later. The structure is documented below:
- Random
Sampling float64Percentage - Specifies the tracing sampling rate.
- default
Providers List<String> - Specifies the name of the default provider that tracing reports data to, which must match the name field in
extension_providers
or use the preset providerapm-otel
of ASM. Ifapm-otel
is used, ensure that APM 2.0 is supported in the current region and the service mesh version is later than 1.18. - extension
Providers List<AsmService Mesh V1Telemetry Config Tracing Extension Provider> - Specifies the user-defined provider. Currently, Zipkin is supported. If you configure the Zipkin provider, ensure that the service mesh version is 1.15 or later. The structure is documented below:
- random
Sampling DoublePercentage - Specifies the tracing sampling rate.
- default
Providers string[] - Specifies the name of the default provider that tracing reports data to, which must match the name field in
extension_providers
or use the preset providerapm-otel
of ASM. Ifapm-otel
is used, ensure that APM 2.0 is supported in the current region and the service mesh version is later than 1.18. - extension
Providers AsmService Mesh V1Telemetry Config Tracing Extension Provider[] - Specifies the user-defined provider. Currently, Zipkin is supported. If you configure the Zipkin provider, ensure that the service mesh version is 1.15 or later. The structure is documented below:
- random
Sampling numberPercentage - Specifies the tracing sampling rate.
- default_
providers Sequence[str] - Specifies the name of the default provider that tracing reports data to, which must match the name field in
extension_providers
or use the preset providerapm-otel
of ASM. Ifapm-otel
is used, ensure that APM 2.0 is supported in the current region and the service mesh version is later than 1.18. - extension_
providers Sequence[AsmService Mesh V1Telemetry Config Tracing Extension Provider] - Specifies the user-defined provider. Currently, Zipkin is supported. If you configure the Zipkin provider, ensure that the service mesh version is 1.15 or later. The structure is documented below:
- random_
sampling_ floatpercentage - Specifies the tracing sampling rate.
- default
Providers List<String> - Specifies the name of the default provider that tracing reports data to, which must match the name field in
extension_providers
or use the preset providerapm-otel
of ASM. Ifapm-otel
is used, ensure that APM 2.0 is supported in the current region and the service mesh version is later than 1.18. - extension
Providers List<Property Map> - Specifies the user-defined provider. Currently, Zipkin is supported. If you configure the Zipkin provider, ensure that the service mesh version is 1.15 or later. The structure is documented below:
- random
Sampling NumberPercentage - Specifies the tracing sampling rate.
AsmServiceMeshV1TelemetryConfigTracingExtensionProvider, AsmServiceMeshV1TelemetryConfigTracingExtensionProviderArgs
- Name string
- Specifies the provider name.
- Zipkin
Service stringAddr - Specifies the service address of Zipkin.
- Zipkin
Service doublePort - Specifies the service port of Zipkin.
- Name string
- Specifies the provider name.
- Zipkin
Service stringAddr - Specifies the service address of Zipkin.
- Zipkin
Service float64Port - Specifies the service port of Zipkin.
- name String
- Specifies the provider name.
- zipkin
Service StringAddr - Specifies the service address of Zipkin.
- zipkin
Service DoublePort - Specifies the service port of Zipkin.
- name string
- Specifies the provider name.
- zipkin
Service stringAddr - Specifies the service address of Zipkin.
- zipkin
Service numberPort - Specifies the service port of Zipkin.
- name str
- Specifies the provider name.
- zipkin_
service_ straddr - Specifies the service address of Zipkin.
- zipkin_
service_ floatport - Specifies the service port of Zipkin.
- name String
- Specifies the provider name.
- zipkin
Service StringAddr - Specifies the service address of Zipkin.
- zipkin
Service NumberPort - Specifies the service port of Zipkin.
AsmServiceMeshV1Timeouts, AsmServiceMeshV1TimeoutsArgs
Import
ASM Service Mesh V1 resource can be imported using the service mesh ID, id
, e.g.
$ pulumi import opentelekomcloud:index/asmServiceMeshV1:AsmServiceMeshV1 mesh_1 <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.