Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.ServiceMesh.getMesh
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides details about a specific Mesh resource in Oracle Cloud Infrastructure Service Mesh service.
Gets a Mesh by identifier.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testMesh = oci.ServiceMesh.getMesh({
meshId: testMeshOciServiceMeshMesh.id,
});
import pulumi
import pulumi_oci as oci
test_mesh = oci.ServiceMesh.get_mesh(mesh_id=test_mesh_oci_service_mesh_mesh["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/ServiceMesh"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ServiceMesh.GetMesh(ctx, &servicemesh.GetMeshArgs{
MeshId: testMeshOciServiceMeshMesh.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testMesh = Oci.ServiceMesh.GetMesh.Invoke(new()
{
MeshId = testMeshOciServiceMeshMesh.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.ServiceMesh.ServiceMeshFunctions;
import com.pulumi.oci.ServiceMesh.inputs.GetMeshArgs;
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 testMesh = ServiceMeshFunctions.getMesh(GetMeshArgs.builder()
.meshId(testMeshOciServiceMeshMesh.id())
.build());
}
}
variables:
testMesh:
fn::invoke:
Function: oci:ServiceMesh:getMesh
Arguments:
meshId: ${testMeshOciServiceMeshMesh.id}
Using getMesh
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 getMesh(args: GetMeshArgs, opts?: InvokeOptions): Promise<GetMeshResult>
function getMeshOutput(args: GetMeshOutputArgs, opts?: InvokeOptions): Output<GetMeshResult>
def get_mesh(mesh_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMeshResult
def get_mesh_output(mesh_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMeshResult]
func GetMesh(ctx *Context, args *GetMeshArgs, opts ...InvokeOption) (*GetMeshResult, error)
func GetMeshOutput(ctx *Context, args *GetMeshOutputArgs, opts ...InvokeOption) GetMeshResultOutput
> Note: This function is named GetMesh
in the Go SDK.
public static class GetMesh
{
public static Task<GetMeshResult> InvokeAsync(GetMeshArgs args, InvokeOptions? opts = null)
public static Output<GetMeshResult> Invoke(GetMeshInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMeshResult> getMesh(GetMeshArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:ServiceMesh/getMesh:getMesh
arguments:
# arguments dictionary
The following arguments are supported:
- Mesh
Id string - Unique Mesh identifier.
- Mesh
Id string - Unique Mesh identifier.
- mesh
Id String - Unique Mesh identifier.
- mesh
Id string - Unique Mesh identifier.
- mesh_
id str - Unique Mesh identifier.
- mesh
Id String - Unique Mesh identifier.
getMesh Result
The following output properties are available:
- List<Get
Mesh Certificate Authority> - A list of certificate authority resources to use for creating leaf certificates for mTLS authentication. Currently we only support one certificate authority, but this may expand in future releases. Request with more than one certificate authority will be rejected.
- Compartment
Id string - The OCID of the compartment.
- Dictionary<string, object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- Description of the resource. It can be changed after creation. Avoid entering confidential information. Example:
This is my new resource
- Display
Name string - A user-friendly name. The name does not have to be unique and can be changed after creation. Avoid entering confidential information. Example:
My new resource
- Dictionary<string, object>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Id string
- Unique identifier that is immutable on creation.
- Lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.
- Mesh
Id string - Mtls
List<Get
Mesh Mtl> - Sets a minimum level of mTLS authentication for all virtual services within the mesh.
- State string
- The current state of the Resource.
- Dictionary<string, object>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time when this resource was created in an RFC3339 formatted datetime string.
- Time
Updated string - The time when this resource was updated in an RFC3339 formatted datetime string.
- []Get
Mesh Certificate Authority - A list of certificate authority resources to use for creating leaf certificates for mTLS authentication. Currently we only support one certificate authority, but this may expand in future releases. Request with more than one certificate authority will be rejected.
- Compartment
Id string - The OCID of the compartment.
- map[string]interface{}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- Description of the resource. It can be changed after creation. Avoid entering confidential information. Example:
This is my new resource
- Display
Name string - A user-friendly name. The name does not have to be unique and can be changed after creation. Avoid entering confidential information. Example:
My new resource
- map[string]interface{}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Id string
- Unique identifier that is immutable on creation.
- Lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.
- Mesh
Id string - Mtls
[]Get
Mesh Mtl - Sets a minimum level of mTLS authentication for all virtual services within the mesh.
- State string
- The current state of the Resource.
- map[string]interface{}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time when this resource was created in an RFC3339 formatted datetime string.
- Time
Updated string - The time when this resource was updated in an RFC3339 formatted datetime string.
- List<Get
Mesh Certificate Authority> - A list of certificate authority resources to use for creating leaf certificates for mTLS authentication. Currently we only support one certificate authority, but this may expand in future releases. Request with more than one certificate authority will be rejected.
- compartment
Id String - The OCID of the compartment.
- Map<String,Object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
- Description of the resource. It can be changed after creation. Avoid entering confidential information. Example:
This is my new resource
- display
Name String - A user-friendly name. The name does not have to be unique and can be changed after creation. Avoid entering confidential information. Example:
My new resource
- Map<String,Object>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id String
- Unique identifier that is immutable on creation.
- lifecycle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.
- mesh
Id String - mtls
List<Get
Mesh Mtl> - Sets a minimum level of mTLS authentication for all virtual services within the mesh.
- state String
- The current state of the Resource.
- Map<String,Object>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time when this resource was created in an RFC3339 formatted datetime string.
- time
Updated String - The time when this resource was updated in an RFC3339 formatted datetime string.
- Get
Mesh Certificate Authority[] - A list of certificate authority resources to use for creating leaf certificates for mTLS authentication. Currently we only support one certificate authority, but this may expand in future releases. Request with more than one certificate authority will be rejected.
- compartment
Id string - The OCID of the compartment.
- {[key: string]: any}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description string
- Description of the resource. It can be changed after creation. Avoid entering confidential information. Example:
This is my new resource
- display
Name string - A user-friendly name. The name does not have to be unique and can be changed after creation. Avoid entering confidential information. Example:
My new resource
- {[key: string]: any}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id string
- Unique identifier that is immutable on creation.
- lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.
- mesh
Id string - mtls
Get
Mesh Mtl[] - Sets a minimum level of mTLS authentication for all virtual services within the mesh.
- state string
- The current state of the Resource.
- {[key: string]: any}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The time when this resource was created in an RFC3339 formatted datetime string.
- time
Updated string - The time when this resource was updated in an RFC3339 formatted datetime string.
- Sequence[servicemesh.
Get Mesh Certificate Authority] - A list of certificate authority resources to use for creating leaf certificates for mTLS authentication. Currently we only support one certificate authority, but this may expand in future releases. Request with more than one certificate authority will be rejected.
- compartment_
id str - The OCID of the compartment.
- Mapping[str, Any]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description str
- Description of the resource. It can be changed after creation. Avoid entering confidential information. Example:
This is my new resource
- display_
name str - A user-friendly name. The name does not have to be unique and can be changed after creation. Avoid entering confidential information. Example:
My new resource
- Mapping[str, Any]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id str
- Unique identifier that is immutable on creation.
- lifecycle_
details str - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.
- mesh_
id str - mtls
Sequence[servicemesh.
Get Mesh Mtl] - Sets a minimum level of mTLS authentication for all virtual services within the mesh.
- state str
- The current state of the Resource.
- Mapping[str, Any]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str - The time when this resource was created in an RFC3339 formatted datetime string.
- time_
updated str - The time when this resource was updated in an RFC3339 formatted datetime string.
- List<Property Map>
- A list of certificate authority resources to use for creating leaf certificates for mTLS authentication. Currently we only support one certificate authority, but this may expand in future releases. Request with more than one certificate authority will be rejected.
- compartment
Id String - The OCID of the compartment.
- Map<Any>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
- Description of the resource. It can be changed after creation. Avoid entering confidential information. Example:
This is my new resource
- display
Name String - A user-friendly name. The name does not have to be unique and can be changed after creation. Avoid entering confidential information. Example:
My new resource
- Map<Any>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id String
- Unique identifier that is immutable on creation.
- lifecycle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.
- mesh
Id String - mtls List<Property Map>
- Sets a minimum level of mTLS authentication for all virtual services within the mesh.
- state String
- The current state of the Resource.
- Map<Any>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time when this resource was created in an RFC3339 formatted datetime string.
- time
Updated String - The time when this resource was updated in an RFC3339 formatted datetime string.
Supporting Types
GetMeshCertificateAuthority
- Id string
- Unique identifier that is immutable on creation.
- Id string
- Unique identifier that is immutable on creation.
- id String
- Unique identifier that is immutable on creation.
- id string
- Unique identifier that is immutable on creation.
- id str
- Unique identifier that is immutable on creation.
- id String
- Unique identifier that is immutable on creation.
GetMeshMtl
- Minimum string
- DISABLED: No minimum virtual services within this mesh can use any mTLS authentication mode. PERMISSIVE: Virtual services within this mesh can use either PERMISSIVE or STRICT modes. STRICT: All virtual services within this mesh must use STRICT mode.
- Minimum string
- DISABLED: No minimum virtual services within this mesh can use any mTLS authentication mode. PERMISSIVE: Virtual services within this mesh can use either PERMISSIVE or STRICT modes. STRICT: All virtual services within this mesh must use STRICT mode.
- minimum String
- DISABLED: No minimum virtual services within this mesh can use any mTLS authentication mode. PERMISSIVE: Virtual services within this mesh can use either PERMISSIVE or STRICT modes. STRICT: All virtual services within this mesh must use STRICT mode.
- minimum string
- DISABLED: No minimum virtual services within this mesh can use any mTLS authentication mode. PERMISSIVE: Virtual services within this mesh can use either PERMISSIVE or STRICT modes. STRICT: All virtual services within this mesh must use STRICT mode.
- minimum str
- DISABLED: No minimum virtual services within this mesh can use any mTLS authentication mode. PERMISSIVE: Virtual services within this mesh can use either PERMISSIVE or STRICT modes. STRICT: All virtual services within this mesh must use STRICT mode.
- minimum String
- DISABLED: No minimum virtual services within this mesh can use any mTLS authentication mode. PERMISSIVE: Virtual services within this mesh can use either PERMISSIVE or STRICT modes. STRICT: All virtual services within this mesh must use STRICT mode.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi