Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.ServiceMesh.getMeshes
Explore with Pulumi AI
This data source provides the list of Meshes in Oracle Cloud Infrastructure Service Mesh service.
Returns a list of Mesh objects.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testMeshes = oci.ServiceMesh.getMeshes({
compartmentId: compartmentId,
displayName: meshDisplayName,
id: meshId,
state: meshState,
});
import pulumi
import pulumi_oci as oci
test_meshes = oci.ServiceMesh.get_meshes(compartment_id=compartment_id,
display_name=mesh_display_name,
id=mesh_id,
state=mesh_state)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/ServiceMesh"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ServiceMesh.GetMeshes(ctx, &servicemesh.GetMeshesArgs{
CompartmentId: compartmentId,
DisplayName: pulumi.StringRef(meshDisplayName),
Id: pulumi.StringRef(meshId),
State: pulumi.StringRef(meshState),
}, 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 testMeshes = Oci.ServiceMesh.GetMeshes.Invoke(new()
{
CompartmentId = compartmentId,
DisplayName = meshDisplayName,
Id = meshId,
State = meshState,
});
});
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.GetMeshesArgs;
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 testMeshes = ServiceMeshFunctions.getMeshes(GetMeshesArgs.builder()
.compartmentId(compartmentId)
.displayName(meshDisplayName)
.id(meshId)
.state(meshState)
.build());
}
}
variables:
testMeshes:
fn::invoke:
Function: oci:ServiceMesh:getMeshes
Arguments:
compartmentId: ${compartmentId}
displayName: ${meshDisplayName}
id: ${meshId}
state: ${meshState}
Using getMeshes
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 getMeshes(args: GetMeshesArgs, opts?: InvokeOptions): Promise<GetMeshesResult>
function getMeshesOutput(args: GetMeshesOutputArgs, opts?: InvokeOptions): Output<GetMeshesResult>
def get_meshes(compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[_servicemesh.GetMeshesFilter]] = None,
id: Optional[str] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMeshesResult
def get_meshes_output(compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_servicemesh.GetMeshesFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMeshesResult]
func GetMeshes(ctx *Context, args *GetMeshesArgs, opts ...InvokeOption) (*GetMeshesResult, error)
func GetMeshesOutput(ctx *Context, args *GetMeshesOutputArgs, opts ...InvokeOption) GetMeshesResultOutput
> Note: This function is named GetMeshes
in the Go SDK.
public static class GetMeshes
{
public static Task<GetMeshesResult> InvokeAsync(GetMeshesArgs args, InvokeOptions? opts = null)
public static Output<GetMeshesResult> Invoke(GetMeshesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMeshesResult> getMeshes(GetMeshesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:ServiceMesh/getMeshes:getMeshes
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The ID of the compartment in which to list resources.
- Display
Name string - A filter to return only resources that match the entire displayName given.
- Filters
List<Get
Meshes Filter> - Id string
- Unique Mesh identifier.
- State string
- A filter to return only resources that match the life cycle state given.
- Compartment
Id string - The ID of the compartment in which to list resources.
- Display
Name string - A filter to return only resources that match the entire displayName given.
- Filters
[]Get
Meshes Filter - Id string
- Unique Mesh identifier.
- State string
- A filter to return only resources that match the life cycle state given.
- compartment
Id String - The ID of the compartment in which to list resources.
- display
Name String - A filter to return only resources that match the entire displayName given.
- filters
List<Get
Meshes Filter> - id String
- Unique Mesh identifier.
- state String
- A filter to return only resources that match the life cycle state given.
- compartment
Id string - The ID of the compartment in which to list resources.
- display
Name string - A filter to return only resources that match the entire displayName given.
- filters
Get
Meshes Filter[] - id string
- Unique Mesh identifier.
- state string
- A filter to return only resources that match the life cycle state given.
- compartment_
id str - The ID of the compartment in which to list resources.
- display_
name str - A filter to return only resources that match the entire displayName given.
- filters
Sequence[servicemesh.
Get Meshes Filter] - id str
- Unique Mesh identifier.
- state str
- A filter to return only resources that match the life cycle state given.
- compartment
Id String - The ID of the compartment in which to list resources.
- display
Name String - A filter to return only resources that match the entire displayName given.
- filters List<Property Map>
- id String
- Unique Mesh identifier.
- state String
- A filter to return only resources that match the life cycle state given.
getMeshes Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment.
- Mesh
Collections List<GetMeshes Mesh Collection> - The list of mesh_collection.
- 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
- Filters
List<Get
Meshes Filter> - Id string
- Unique identifier that is immutable on creation.
- State string
- The current state of the Resource.
- Compartment
Id string - The OCID of the compartment.
- Mesh
Collections []GetMeshes Mesh Collection - The list of mesh_collection.
- 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
- Filters
[]Get
Meshes Filter - Id string
- Unique identifier that is immutable on creation.
- State string
- The current state of the Resource.
- compartment
Id String - The OCID of the compartment.
- mesh
Collections List<GetMeshes Mesh Collection> - The list of mesh_collection.
- 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
- filters
List<Get
Meshes Filter> - id String
- Unique identifier that is immutable on creation.
- state String
- The current state of the Resource.
- compartment
Id string - The OCID of the compartment.
- mesh
Collections GetMeshes Mesh Collection[] - The list of mesh_collection.
- 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
- filters
Get
Meshes Filter[] - id string
- Unique identifier that is immutable on creation.
- state string
- The current state of the Resource.
- compartment_
id str - The OCID of the compartment.
- mesh_
collections Sequence[servicemesh.Get Meshes Mesh Collection] - The list of mesh_collection.
- 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
- filters
Sequence[servicemesh.
Get Meshes Filter] - id str
- Unique identifier that is immutable on creation.
- state str
- The current state of the Resource.
- compartment
Id String - The OCID of the compartment.
- mesh
Collections List<Property Map> - The list of mesh_collection.
- 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
- filters List<Property Map>
- id String
- Unique identifier that is immutable on creation.
- state String
- The current state of the Resource.
Supporting Types
GetMeshesFilter
GetMeshesMeshCollection
GetMeshesMeshCollectionItem
- List<Get
Meshes Mesh Collection Item 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 ID of the compartment in which to list resources.
- Dictionary<string, string>
- 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 filter to return only resources that match the entire displayName given.
- Dictionary<string, string>
- 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 Mesh identifier.
- 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.
- Mtls
List<Get
Meshes Mesh Collection Item Mtl> - Sets a minimum level of mTLS authentication for all virtual services within the mesh.
- State string
- A filter to return only resources that match the life cycle state given.
- Dictionary<string, string>
- 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
Meshes Mesh Collection Item 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 ID of the compartment in which to list resources.
- map[string]string
- 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 filter to return only resources that match the entire displayName given.
- map[string]string
- 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 Mesh identifier.
- 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.
- Mtls
[]Get
Meshes Mesh Collection Item Mtl - Sets a minimum level of mTLS authentication for all virtual services within the mesh.
- State string
- A filter to return only resources that match the life cycle state given.
- map[string]string
- 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
Meshes Mesh Collection Item 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 ID of the compartment in which to list resources.
- Map<String,String>
- 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 filter to return only resources that match the entire displayName given.
- Map<String,String>
- 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 Mesh identifier.
- 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.
- mtls
List<Get
Meshes Mesh Collection Item Mtl> - Sets a minimum level of mTLS authentication for all virtual services within the mesh.
- state String
- A filter to return only resources that match the life cycle state given.
- Map<String,String>
- 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
Meshes Mesh Collection Item 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 ID of the compartment in which to list resources.
- {[key: string]: string}
- 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 filter to return only resources that match the entire displayName given.
- {[key: string]: string}
- 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 Mesh identifier.
- 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.
- mtls
Get
Meshes Mesh Collection Item Mtl[] - Sets a minimum level of mTLS authentication for all virtual services within the mesh.
- state string
- A filter to return only resources that match the life cycle state given.
- {[key: string]: string}
- 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 Meshes Mesh Collection Item 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 ID of the compartment in which to list resources.
- Mapping[str, str]
- 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 filter to return only resources that match the entire displayName given.
- Mapping[str, str]
- 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 Mesh identifier.
- 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.
- mtls
Sequence[servicemesh.
Get Meshes Mesh Collection Item Mtl] - Sets a minimum level of mTLS authentication for all virtual services within the mesh.
- state str
- A filter to return only resources that match the life cycle state given.
- Mapping[str, str]
- 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 ID of the compartment in which to list resources.
- Map<String>
- 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 filter to return only resources that match the entire displayName given.
- Map<String>
- 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 Mesh identifier.
- 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.
- mtls List<Property Map>
- Sets a minimum level of mTLS authentication for all virtual services within the mesh.
- state String
- A filter to return only resources that match the life cycle state given.
- Map<String>
- 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.
GetMeshesMeshCollectionItemCertificateAuthority
- Id string
- Unique Mesh identifier.
- Id string
- Unique Mesh identifier.
- id String
- Unique Mesh identifier.
- id string
- Unique Mesh identifier.
- id str
- Unique Mesh identifier.
- id String
- Unique Mesh identifier.
GetMeshesMeshCollectionItemMtl
- 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.