Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.ServiceMesh.getVirtualService
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 Virtual Service resource in Oracle Cloud Infrastructure Service Mesh service.
Gets a VirtualService by identifier.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testVirtualService = oci.ServiceMesh.getVirtualService({
virtualServiceId: testVirtualServiceOciServiceMeshVirtualService.id,
});
import pulumi
import pulumi_oci as oci
test_virtual_service = oci.ServiceMesh.get_virtual_service(virtual_service_id=test_virtual_service_oci_service_mesh_virtual_service["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.GetVirtualService(ctx, &servicemesh.GetVirtualServiceArgs{
VirtualServiceId: testVirtualServiceOciServiceMeshVirtualService.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 testVirtualService = Oci.ServiceMesh.GetVirtualService.Invoke(new()
{
VirtualServiceId = testVirtualServiceOciServiceMeshVirtualService.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.GetVirtualServiceArgs;
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 testVirtualService = ServiceMeshFunctions.getVirtualService(GetVirtualServiceArgs.builder()
.virtualServiceId(testVirtualServiceOciServiceMeshVirtualService.id())
.build());
}
}
variables:
testVirtualService:
fn::invoke:
Function: oci:ServiceMesh:getVirtualService
Arguments:
virtualServiceId: ${testVirtualServiceOciServiceMeshVirtualService.id}
Using getVirtualService
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 getVirtualService(args: GetVirtualServiceArgs, opts?: InvokeOptions): Promise<GetVirtualServiceResult>
function getVirtualServiceOutput(args: GetVirtualServiceOutputArgs, opts?: InvokeOptions): Output<GetVirtualServiceResult>
def get_virtual_service(virtual_service_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVirtualServiceResult
def get_virtual_service_output(virtual_service_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVirtualServiceResult]
func GetVirtualService(ctx *Context, args *GetVirtualServiceArgs, opts ...InvokeOption) (*GetVirtualServiceResult, error)
func GetVirtualServiceOutput(ctx *Context, args *GetVirtualServiceOutputArgs, opts ...InvokeOption) GetVirtualServiceResultOutput
> Note: This function is named GetVirtualService
in the Go SDK.
public static class GetVirtualService
{
public static Task<GetVirtualServiceResult> InvokeAsync(GetVirtualServiceArgs args, InvokeOptions? opts = null)
public static Output<GetVirtualServiceResult> Invoke(GetVirtualServiceInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetVirtualServiceResult> getVirtualService(GetVirtualServiceArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:ServiceMesh/getVirtualService:getVirtualService
arguments:
# arguments dictionary
The following arguments are supported:
- Virtual
Service stringId - Unique VirtualService identifier.
- Virtual
Service stringId - Unique VirtualService identifier.
- virtual
Service StringId - Unique VirtualService identifier.
- virtual
Service stringId - Unique VirtualService identifier.
- virtual_
service_ strid - Unique VirtualService identifier.
- virtual
Service StringId - Unique VirtualService identifier.
getVirtualService Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment.
- Default
Routing List<GetPolicies Virtual Service Default Routing Policy> - Routing policy for the virtual service.
- 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
- 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"}
- Hosts List<string>
- The DNS hostnames of the virtual service that is used by its callers. Wildcard hostnames are supported in the prefix form. Examples of valid hostnames are "www.example.com", ".example.com", ".com". Can be omitted if the virtual service will only have TCP virtual deployments.
- 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 - The OCID of the service mesh in which this virtual service is created.
- Mtls
List<Get
Virtual Service Mtl> - Mutual TLS settings used when communicating with other virtual services or ingress gateways within the mesh.
- Name string
- A user-friendly name. The name has to be unique within the same service mesh and cannot be changed after creation. Avoid entering confidential information. Example:
My unique resource name
- 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.
- Virtual
Service stringId
- Compartment
Id string - The OCID of the compartment.
- Default
Routing []GetPolicies Virtual Service Default Routing Policy - Routing policy for the virtual service.
- 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
- 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"}
- Hosts []string
- The DNS hostnames of the virtual service that is used by its callers. Wildcard hostnames are supported in the prefix form. Examples of valid hostnames are "www.example.com", ".example.com", ".com". Can be omitted if the virtual service will only have TCP virtual deployments.
- 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 - The OCID of the service mesh in which this virtual service is created.
- Mtls
[]Get
Virtual Service Mtl - Mutual TLS settings used when communicating with other virtual services or ingress gateways within the mesh.
- Name string
- A user-friendly name. The name has to be unique within the same service mesh and cannot be changed after creation. Avoid entering confidential information. Example:
My unique resource name
- 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.
- Virtual
Service stringId
- compartment
Id String - The OCID of the compartment.
- default
Routing List<GetPolicies Virtual Service Default Routing Policy> - Routing policy for the virtual service.
- 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
- 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"}
- hosts List<String>
- The DNS hostnames of the virtual service that is used by its callers. Wildcard hostnames are supported in the prefix form. Examples of valid hostnames are "www.example.com", ".example.com", ".com". Can be omitted if the virtual service will only have TCP virtual deployments.
- 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 - The OCID of the service mesh in which this virtual service is created.
- mtls
List<Get
Virtual Service Mtl> - Mutual TLS settings used when communicating with other virtual services or ingress gateways within the mesh.
- name String
- A user-friendly name. The name has to be unique within the same service mesh and cannot be changed after creation. Avoid entering confidential information. Example:
My unique resource name
- 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.
- virtual
Service StringId
- compartment
Id string - The OCID of the compartment.
- default
Routing GetPolicies Virtual Service Default Routing Policy[] - Routing policy for the virtual service.
- {[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
- {[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"}
- hosts string[]
- The DNS hostnames of the virtual service that is used by its callers. Wildcard hostnames are supported in the prefix form. Examples of valid hostnames are "www.example.com", ".example.com", ".com". Can be omitted if the virtual service will only have TCP virtual deployments.
- 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 - The OCID of the service mesh in which this virtual service is created.
- mtls
Get
Virtual Service Mtl[] - Mutual TLS settings used when communicating with other virtual services or ingress gateways within the mesh.
- name string
- A user-friendly name. The name has to be unique within the same service mesh and cannot be changed after creation. Avoid entering confidential information. Example:
My unique resource name
- 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.
- virtual
Service stringId
- compartment_
id str - The OCID of the compartment.
- default_
routing_ Sequence[servicemesh.policies Get Virtual Service Default Routing Policy] - Routing policy for the virtual service.
- 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
- 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"}
- hosts Sequence[str]
- The DNS hostnames of the virtual service that is used by its callers. Wildcard hostnames are supported in the prefix form. Examples of valid hostnames are "www.example.com", ".example.com", ".com". Can be omitted if the virtual service will only have TCP virtual deployments.
- 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 - The OCID of the service mesh in which this virtual service is created.
- mtls
Sequence[servicemesh.
Get Virtual Service Mtl] - Mutual TLS settings used when communicating with other virtual services or ingress gateways within the mesh.
- name str
- A user-friendly name. The name has to be unique within the same service mesh and cannot be changed after creation. Avoid entering confidential information. Example:
My unique resource name
- 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.
- virtual_
service_ strid
- compartment
Id String - The OCID of the compartment.
- default
Routing List<Property Map>Policies - Routing policy for the virtual service.
- 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
- 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"}
- hosts List<String>
- The DNS hostnames of the virtual service that is used by its callers. Wildcard hostnames are supported in the prefix form. Examples of valid hostnames are "www.example.com", ".example.com", ".com". Can be omitted if the virtual service will only have TCP virtual deployments.
- 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 - The OCID of the service mesh in which this virtual service is created.
- mtls List<Property Map>
- Mutual TLS settings used when communicating with other virtual services or ingress gateways within the mesh.
- name String
- A user-friendly name. The name has to be unique within the same service mesh and cannot be changed after creation. Avoid entering confidential information. Example:
My unique resource name
- 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.
- virtual
Service StringId
Supporting Types
GetVirtualServiceDefaultRoutingPolicy
- Type string
- Type of the virtual service routing policy.
- Type string
- Type of the virtual service routing policy.
- type String
- Type of the virtual service routing policy.
- type string
- Type of the virtual service routing policy.
- type str
- Type of the virtual service routing policy.
- type String
- Type of the virtual service routing policy.
GetVirtualServiceMtl
- Certificate
Id string - The OCID of the certificate resource that will be used for mTLS authentication with other virtual services in the mesh.
- Maximum
Validity int - The number of days the mTLS certificate is valid. This value should be less than the Maximum Validity Duration for Certificates (Days) setting on the Certificate Authority associated with this Mesh. The certificate will be automatically renewed after 2/3 of the validity period, so a certificate with a maximum validity of 45 days will be renewed every 30 days.
- Mode string
- DISABLED: Connection is not tunneled. PERMISSIVE: Connection can be either plaintext or an mTLS tunnel. STRICT: Connection is an mTLS tunnel. Clients without a valid certificate will be rejected.
- Certificate
Id string - The OCID of the certificate resource that will be used for mTLS authentication with other virtual services in the mesh.
- Maximum
Validity int - The number of days the mTLS certificate is valid. This value should be less than the Maximum Validity Duration for Certificates (Days) setting on the Certificate Authority associated with this Mesh. The certificate will be automatically renewed after 2/3 of the validity period, so a certificate with a maximum validity of 45 days will be renewed every 30 days.
- Mode string
- DISABLED: Connection is not tunneled. PERMISSIVE: Connection can be either plaintext or an mTLS tunnel. STRICT: Connection is an mTLS tunnel. Clients without a valid certificate will be rejected.
- certificate
Id String - The OCID of the certificate resource that will be used for mTLS authentication with other virtual services in the mesh.
- maximum
Validity Integer - The number of days the mTLS certificate is valid. This value should be less than the Maximum Validity Duration for Certificates (Days) setting on the Certificate Authority associated with this Mesh. The certificate will be automatically renewed after 2/3 of the validity period, so a certificate with a maximum validity of 45 days will be renewed every 30 days.
- mode String
- DISABLED: Connection is not tunneled. PERMISSIVE: Connection can be either plaintext or an mTLS tunnel. STRICT: Connection is an mTLS tunnel. Clients without a valid certificate will be rejected.
- certificate
Id string - The OCID of the certificate resource that will be used for mTLS authentication with other virtual services in the mesh.
- maximum
Validity number - The number of days the mTLS certificate is valid. This value should be less than the Maximum Validity Duration for Certificates (Days) setting on the Certificate Authority associated with this Mesh. The certificate will be automatically renewed after 2/3 of the validity period, so a certificate with a maximum validity of 45 days will be renewed every 30 days.
- mode string
- DISABLED: Connection is not tunneled. PERMISSIVE: Connection can be either plaintext or an mTLS tunnel. STRICT: Connection is an mTLS tunnel. Clients without a valid certificate will be rejected.
- certificate_
id str - The OCID of the certificate resource that will be used for mTLS authentication with other virtual services in the mesh.
- maximum_
validity int - The number of days the mTLS certificate is valid. This value should be less than the Maximum Validity Duration for Certificates (Days) setting on the Certificate Authority associated with this Mesh. The certificate will be automatically renewed after 2/3 of the validity period, so a certificate with a maximum validity of 45 days will be renewed every 30 days.
- mode str
- DISABLED: Connection is not tunneled. PERMISSIVE: Connection can be either plaintext or an mTLS tunnel. STRICT: Connection is an mTLS tunnel. Clients without a valid certificate will be rejected.
- certificate
Id String - The OCID of the certificate resource that will be used for mTLS authentication with other virtual services in the mesh.
- maximum
Validity Number - The number of days the mTLS certificate is valid. This value should be less than the Maximum Validity Duration for Certificates (Days) setting on the Certificate Authority associated with this Mesh. The certificate will be automatically renewed after 2/3 of the validity period, so a certificate with a maximum validity of 45 days will be renewed every 30 days.
- mode String
- DISABLED: Connection is not tunneled. PERMISSIVE: Connection can be either plaintext or an mTLS tunnel. STRICT: Connection is an mTLS tunnel. Clients without a valid certificate will be rejected.
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