1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ServiceMesh
  5. VirtualDeployment
Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi

oci.ServiceMesh.VirtualDeployment

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi

    This resource provides the Virtual Deployment resource in Oracle Cloud Infrastructure Service Mesh service.

    Creates a new VirtualDeployment.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testVirtualDeployment = new oci.servicemesh.VirtualDeployment("testVirtualDeployment", {
        compartmentId: _var.compartment_id,
        virtualServiceId: oci_service_mesh_virtual_service.test_virtual_service.id,
        accessLogging: {
            isEnabled: _var.virtual_deployment_access_logging_is_enabled,
        },
        definedTags: {
            "foo-namespace.bar-key": "value",
        },
        description: _var.virtual_deployment_description,
        freeformTags: {
            "bar-key": "value",
        },
        listeners: [{
            port: _var.virtual_deployment_listeners_port,
            protocol: _var.virtual_deployment_listeners_protocol,
            idleTimeoutInMs: _var.virtual_deployment_listeners_idle_timeout_in_ms,
            requestTimeoutInMs: _var.virtual_deployment_listeners_request_timeout_in_ms,
        }],
        serviceDiscovery: {
            type: _var.virtual_deployment_service_discovery_type,
            hostname: _var.virtual_deployment_service_discovery_hostname,
        },
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_virtual_deployment = oci.service_mesh.VirtualDeployment("testVirtualDeployment",
        compartment_id=var["compartment_id"],
        virtual_service_id=oci_service_mesh_virtual_service["test_virtual_service"]["id"],
        access_logging=oci.service_mesh.VirtualDeploymentAccessLoggingArgs(
            is_enabled=var["virtual_deployment_access_logging_is_enabled"],
        ),
        defined_tags={
            "foo-namespace.bar-key": "value",
        },
        description=var["virtual_deployment_description"],
        freeform_tags={
            "bar-key": "value",
        },
        listeners=[oci.service_mesh.VirtualDeploymentListenerArgs(
            port=var["virtual_deployment_listeners_port"],
            protocol=var["virtual_deployment_listeners_protocol"],
            idle_timeout_in_ms=var["virtual_deployment_listeners_idle_timeout_in_ms"],
            request_timeout_in_ms=var["virtual_deployment_listeners_request_timeout_in_ms"],
        )],
        service_discovery=oci.service_mesh.VirtualDeploymentServiceDiscoveryArgs(
            type=var["virtual_deployment_service_discovery_type"],
            hostname=var["virtual_deployment_service_discovery_hostname"],
        ))
    
    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.NewVirtualDeployment(ctx, "testVirtualDeployment", &ServiceMesh.VirtualDeploymentArgs{
    			CompartmentId:    pulumi.Any(_var.Compartment_id),
    			VirtualServiceId: pulumi.Any(oci_service_mesh_virtual_service.Test_virtual_service.Id),
    			AccessLogging: &servicemesh.VirtualDeploymentAccessLoggingArgs{
    				IsEnabled: pulumi.Any(_var.Virtual_deployment_access_logging_is_enabled),
    			},
    			DefinedTags: pulumi.Map{
    				"foo-namespace.bar-key": pulumi.Any("value"),
    			},
    			Description: pulumi.Any(_var.Virtual_deployment_description),
    			FreeformTags: pulumi.Map{
    				"bar-key": pulumi.Any("value"),
    			},
    			Listeners: servicemesh.VirtualDeploymentListenerArray{
    				&servicemesh.VirtualDeploymentListenerArgs{
    					Port:               pulumi.Any(_var.Virtual_deployment_listeners_port),
    					Protocol:           pulumi.Any(_var.Virtual_deployment_listeners_protocol),
    					IdleTimeoutInMs:    pulumi.Any(_var.Virtual_deployment_listeners_idle_timeout_in_ms),
    					RequestTimeoutInMs: pulumi.Any(_var.Virtual_deployment_listeners_request_timeout_in_ms),
    				},
    			},
    			ServiceDiscovery: &servicemesh.VirtualDeploymentServiceDiscoveryArgs{
    				Type:     pulumi.Any(_var.Virtual_deployment_service_discovery_type),
    				Hostname: pulumi.Any(_var.Virtual_deployment_service_discovery_hostname),
    			},
    		})
    		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 testVirtualDeployment = new Oci.ServiceMesh.VirtualDeployment("testVirtualDeployment", new()
        {
            CompartmentId = @var.Compartment_id,
            VirtualServiceId = oci_service_mesh_virtual_service.Test_virtual_service.Id,
            AccessLogging = new Oci.ServiceMesh.Inputs.VirtualDeploymentAccessLoggingArgs
            {
                IsEnabled = @var.Virtual_deployment_access_logging_is_enabled,
            },
            DefinedTags = 
            {
                { "foo-namespace.bar-key", "value" },
            },
            Description = @var.Virtual_deployment_description,
            FreeformTags = 
            {
                { "bar-key", "value" },
            },
            Listeners = new[]
            {
                new Oci.ServiceMesh.Inputs.VirtualDeploymentListenerArgs
                {
                    Port = @var.Virtual_deployment_listeners_port,
                    Protocol = @var.Virtual_deployment_listeners_protocol,
                    IdleTimeoutInMs = @var.Virtual_deployment_listeners_idle_timeout_in_ms,
                    RequestTimeoutInMs = @var.Virtual_deployment_listeners_request_timeout_in_ms,
                },
            },
            ServiceDiscovery = new Oci.ServiceMesh.Inputs.VirtualDeploymentServiceDiscoveryArgs
            {
                Type = @var.Virtual_deployment_service_discovery_type,
                Hostname = @var.Virtual_deployment_service_discovery_hostname,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.ServiceMesh.VirtualDeployment;
    import com.pulumi.oci.ServiceMesh.VirtualDeploymentArgs;
    import com.pulumi.oci.ServiceMesh.inputs.VirtualDeploymentAccessLoggingArgs;
    import com.pulumi.oci.ServiceMesh.inputs.VirtualDeploymentListenerArgs;
    import com.pulumi.oci.ServiceMesh.inputs.VirtualDeploymentServiceDiscoveryArgs;
    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 testVirtualDeployment = new VirtualDeployment("testVirtualDeployment", VirtualDeploymentArgs.builder()        
                .compartmentId(var_.compartment_id())
                .virtualServiceId(oci_service_mesh_virtual_service.test_virtual_service().id())
                .accessLogging(VirtualDeploymentAccessLoggingArgs.builder()
                    .isEnabled(var_.virtual_deployment_access_logging_is_enabled())
                    .build())
                .definedTags(Map.of("foo-namespace.bar-key", "value"))
                .description(var_.virtual_deployment_description())
                .freeformTags(Map.of("bar-key", "value"))
                .listeners(VirtualDeploymentListenerArgs.builder()
                    .port(var_.virtual_deployment_listeners_port())
                    .protocol(var_.virtual_deployment_listeners_protocol())
                    .idleTimeoutInMs(var_.virtual_deployment_listeners_idle_timeout_in_ms())
                    .requestTimeoutInMs(var_.virtual_deployment_listeners_request_timeout_in_ms())
                    .build())
                .serviceDiscovery(VirtualDeploymentServiceDiscoveryArgs.builder()
                    .type(var_.virtual_deployment_service_discovery_type())
                    .hostname(var_.virtual_deployment_service_discovery_hostname())
                    .build())
                .build());
    
        }
    }
    
    resources:
      testVirtualDeployment:
        type: oci:ServiceMesh:VirtualDeployment
        properties:
          #Required
          compartmentId: ${var.compartment_id}
          virtualServiceId: ${oci_service_mesh_virtual_service.test_virtual_service.id}
          accessLogging:
            isEnabled: ${var.virtual_deployment_access_logging_is_enabled}
          definedTags:
            foo-namespace.bar-key: value
          description: ${var.virtual_deployment_description}
          freeformTags:
            bar-key: value
          listeners:
            - port: ${var.virtual_deployment_listeners_port}
              protocol: ${var.virtual_deployment_listeners_protocol}
              idleTimeoutInMs: ${var.virtual_deployment_listeners_idle_timeout_in_ms}
              requestTimeoutInMs: ${var.virtual_deployment_listeners_request_timeout_in_ms}
          serviceDiscovery:
            type: ${var.virtual_deployment_service_discovery_type}
            hostname: ${var.virtual_deployment_service_discovery_hostname}
    

    Create VirtualDeployment Resource

    new VirtualDeployment(name: string, args: VirtualDeploymentArgs, opts?: CustomResourceOptions);
    @overload
    def VirtualDeployment(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          access_logging: Optional[_servicemesh.VirtualDeploymentAccessLoggingArgs] = None,
                          compartment_id: Optional[str] = None,
                          defined_tags: Optional[Mapping[str, Any]] = None,
                          description: Optional[str] = None,
                          freeform_tags: Optional[Mapping[str, Any]] = None,
                          listeners: Optional[Sequence[_servicemesh.VirtualDeploymentListenerArgs]] = None,
                          name: Optional[str] = None,
                          service_discovery: Optional[_servicemesh.VirtualDeploymentServiceDiscoveryArgs] = None,
                          virtual_service_id: Optional[str] = None)
    @overload
    def VirtualDeployment(resource_name: str,
                          args: VirtualDeploymentArgs,
                          opts: Optional[ResourceOptions] = None)
    func NewVirtualDeployment(ctx *Context, name string, args VirtualDeploymentArgs, opts ...ResourceOption) (*VirtualDeployment, error)
    public VirtualDeployment(string name, VirtualDeploymentArgs args, CustomResourceOptions? opts = null)
    public VirtualDeployment(String name, VirtualDeploymentArgs args)
    public VirtualDeployment(String name, VirtualDeploymentArgs args, CustomResourceOptions options)
    
    type: oci:ServiceMesh:VirtualDeployment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args VirtualDeploymentArgs
    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 VirtualDeploymentArgs
    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 VirtualDeploymentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VirtualDeploymentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VirtualDeploymentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    VirtualDeployment Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The VirtualDeployment resource accepts the following input properties:

    CompartmentId string
    (Updatable) The OCID of the compartment.
    VirtualServiceId string

    The OCID of the service mesh in which this access policy is created.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    AccessLogging VirtualDeploymentAccessLogging
    (Updatable) This configuration determines if logging is enabled and where the logs will be output.
    DefinedTags Dictionary<string, object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    (Updatable) Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
    FreeformTags Dictionary<string, object>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    Listeners List<VirtualDeploymentListener>
    (Updatable) The listeners for the virtual deployment.
    Name string
    A user-friendly name. The name must be unique within the same virtual service and cannot be changed after creation. Avoid entering confidential information. Example: My unique resource name
    ServiceDiscovery VirtualDeploymentServiceDiscovery
    (Updatable) Service Discovery configuration for virtual deployments.
    CompartmentId string
    (Updatable) The OCID of the compartment.
    VirtualServiceId string

    The OCID of the service mesh in which this access policy is created.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    AccessLogging VirtualDeploymentAccessLoggingArgs
    (Updatable) This configuration determines if logging is enabled and where the logs will be output.
    DefinedTags map[string]interface{}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    (Updatable) Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
    FreeformTags map[string]interface{}
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    Listeners []VirtualDeploymentListenerArgs
    (Updatable) The listeners for the virtual deployment.
    Name string
    A user-friendly name. The name must be unique within the same virtual service and cannot be changed after creation. Avoid entering confidential information. Example: My unique resource name
    ServiceDiscovery VirtualDeploymentServiceDiscoveryArgs
    (Updatable) Service Discovery configuration for virtual deployments.
    compartmentId String
    (Updatable) The OCID of the compartment.
    virtualServiceId String

    The OCID of the service mesh in which this access policy is created.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    accessLogging VirtualDeploymentAccessLogging
    (Updatable) This configuration determines if logging is enabled and where the logs will be output.
    definedTags Map<String,Object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    (Updatable) Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
    freeformTags Map<String,Object>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    listeners List<VirtualDeploymentListener>
    (Updatable) The listeners for the virtual deployment.
    name String
    A user-friendly name. The name must be unique within the same virtual service and cannot be changed after creation. Avoid entering confidential information. Example: My unique resource name
    serviceDiscovery VirtualDeploymentServiceDiscovery
    (Updatable) Service Discovery configuration for virtual deployments.
    compartmentId string
    (Updatable) The OCID of the compartment.
    virtualServiceId string

    The OCID of the service mesh in which this access policy is created.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    accessLogging VirtualDeploymentAccessLogging
    (Updatable) This configuration determines if logging is enabled and where the logs will be output.
    definedTags {[key: string]: any}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description string
    (Updatable) Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
    freeformTags {[key: string]: any}
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    listeners VirtualDeploymentListener[]
    (Updatable) The listeners for the virtual deployment.
    name string
    A user-friendly name. The name must be unique within the same virtual service and cannot be changed after creation. Avoid entering confidential information. Example: My unique resource name
    serviceDiscovery VirtualDeploymentServiceDiscovery
    (Updatable) Service Discovery configuration for virtual deployments.
    compartment_id str
    (Updatable) The OCID of the compartment.
    virtual_service_id str

    The OCID of the service mesh in which this access policy is created.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    access_logging VirtualDeploymentAccessLoggingArgs
    (Updatable) This configuration determines if logging is enabled and where the logs will be output.
    defined_tags Mapping[str, Any]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description str
    (Updatable) Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
    freeform_tags Mapping[str, Any]
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    listeners VirtualDeploymentListenerArgs]
    (Updatable) The listeners for the virtual deployment.
    name str
    A user-friendly name. The name must be unique within the same virtual service and cannot be changed after creation. Avoid entering confidential information. Example: My unique resource name
    service_discovery VirtualDeploymentServiceDiscoveryArgs
    (Updatable) Service Discovery configuration for virtual deployments.
    compartmentId String
    (Updatable) The OCID of the compartment.
    virtualServiceId String

    The OCID of the service mesh in which this access policy is created.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    accessLogging Property Map
    (Updatable) This configuration determines if logging is enabled and where the logs will be output.
    definedTags Map<Any>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    (Updatable) Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
    freeformTags Map<Any>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    listeners List<Property Map>
    (Updatable) The listeners for the virtual deployment.
    name String
    A user-friendly name. The name must be unique within the same virtual service and cannot be changed after creation. Avoid entering confidential information. Example: My unique resource name
    serviceDiscovery Property Map
    (Updatable) Service Discovery configuration for virtual deployments.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VirtualDeployment resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleDetails 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.
    State string
    The current state of the Resource.
    SystemTags Dictionary<string, object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time when this resource was created in an RFC3339 formatted datetime string.
    TimeUpdated string
    The time when this resource was updated in an RFC3339 formatted datetime string.
    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleDetails 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.
    State string
    The current state of the Resource.
    SystemTags map[string]interface{}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time when this resource was created in an RFC3339 formatted datetime string.
    TimeUpdated string
    The time when this resource was updated in an RFC3339 formatted datetime string.
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails 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.
    state String
    The current state of the Resource.
    systemTags Map<String,Object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time when this resource was created in an RFC3339 formatted datetime string.
    timeUpdated String
    The time when this resource was updated in an RFC3339 formatted datetime string.
    id string
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails 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.
    state string
    The current state of the Resource.
    systemTags {[key: string]: any}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The time when this resource was created in an RFC3339 formatted datetime string.
    timeUpdated string
    The time when this resource was updated in an RFC3339 formatted datetime string.
    id str
    The provider-assigned unique ID for this managed resource.
    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.
    state str
    The current state of the Resource.
    system_tags 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.
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails 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.
    state String
    The current state of the Resource.
    systemTags Map<Any>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time when this resource was created in an RFC3339 formatted datetime string.
    timeUpdated String
    The time when this resource was updated in an RFC3339 formatted datetime string.

    Look up Existing VirtualDeployment Resource

    Get an existing VirtualDeployment 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?: VirtualDeploymentState, opts?: CustomResourceOptions): VirtualDeployment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_logging: Optional[_servicemesh.VirtualDeploymentAccessLoggingArgs] = None,
            compartment_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, Any]] = None,
            description: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, Any]] = None,
            lifecycle_details: Optional[str] = None,
            listeners: Optional[Sequence[_servicemesh.VirtualDeploymentListenerArgs]] = None,
            name: Optional[str] = None,
            service_discovery: Optional[_servicemesh.VirtualDeploymentServiceDiscoveryArgs] = None,
            state: Optional[str] = None,
            system_tags: Optional[Mapping[str, Any]] = None,
            time_created: Optional[str] = None,
            time_updated: Optional[str] = None,
            virtual_service_id: Optional[str] = None) -> VirtualDeployment
    func GetVirtualDeployment(ctx *Context, name string, id IDInput, state *VirtualDeploymentState, opts ...ResourceOption) (*VirtualDeployment, error)
    public static VirtualDeployment Get(string name, Input<string> id, VirtualDeploymentState? state, CustomResourceOptions? opts = null)
    public static VirtualDeployment get(String name, Output<String> id, VirtualDeploymentState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    AccessLogging VirtualDeploymentAccessLogging
    (Updatable) This configuration determines if logging is enabled and where the logs will be output.
    CompartmentId string
    (Updatable) The OCID of the compartment.
    DefinedTags Dictionary<string, object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    (Updatable) Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
    FreeformTags Dictionary<string, object>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    LifecycleDetails 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.
    Listeners List<VirtualDeploymentListener>
    (Updatable) The listeners for the virtual deployment.
    Name string
    A user-friendly name. The name must be unique within the same virtual service and cannot be changed after creation. Avoid entering confidential information. Example: My unique resource name
    ServiceDiscovery VirtualDeploymentServiceDiscovery
    (Updatable) Service Discovery configuration for virtual deployments.
    State string
    The current state of the Resource.
    SystemTags Dictionary<string, object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time when this resource was created in an RFC3339 formatted datetime string.
    TimeUpdated string
    The time when this resource was updated in an RFC3339 formatted datetime string.
    VirtualServiceId string

    The OCID of the service mesh in which this access policy is created.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    AccessLogging VirtualDeploymentAccessLoggingArgs
    (Updatable) This configuration determines if logging is enabled and where the logs will be output.
    CompartmentId string
    (Updatable) The OCID of the compartment.
    DefinedTags map[string]interface{}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    (Updatable) Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
    FreeformTags map[string]interface{}
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    LifecycleDetails 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.
    Listeners []VirtualDeploymentListenerArgs
    (Updatable) The listeners for the virtual deployment.
    Name string
    A user-friendly name. The name must be unique within the same virtual service and cannot be changed after creation. Avoid entering confidential information. Example: My unique resource name
    ServiceDiscovery VirtualDeploymentServiceDiscoveryArgs
    (Updatable) Service Discovery configuration for virtual deployments.
    State string
    The current state of the Resource.
    SystemTags map[string]interface{}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time when this resource was created in an RFC3339 formatted datetime string.
    TimeUpdated string
    The time when this resource was updated in an RFC3339 formatted datetime string.
    VirtualServiceId string

    The OCID of the service mesh in which this access policy is created.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    accessLogging VirtualDeploymentAccessLogging
    (Updatable) This configuration determines if logging is enabled and where the logs will be output.
    compartmentId String
    (Updatable) The OCID of the compartment.
    definedTags Map<String,Object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    (Updatable) Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
    freeformTags Map<String,Object>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    lifecycleDetails 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.
    listeners List<VirtualDeploymentListener>
    (Updatable) The listeners for the virtual deployment.
    name String
    A user-friendly name. The name must be unique within the same virtual service and cannot be changed after creation. Avoid entering confidential information. Example: My unique resource name
    serviceDiscovery VirtualDeploymentServiceDiscovery
    (Updatable) Service Discovery configuration for virtual deployments.
    state String
    The current state of the Resource.
    systemTags Map<String,Object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time when this resource was created in an RFC3339 formatted datetime string.
    timeUpdated String
    The time when this resource was updated in an RFC3339 formatted datetime string.
    virtualServiceId String

    The OCID of the service mesh in which this access policy is created.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    accessLogging VirtualDeploymentAccessLogging
    (Updatable) This configuration determines if logging is enabled and where the logs will be output.
    compartmentId string
    (Updatable) The OCID of the compartment.
    definedTags {[key: string]: any}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description string
    (Updatable) Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
    freeformTags {[key: string]: any}
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    lifecycleDetails 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.
    listeners VirtualDeploymentListener[]
    (Updatable) The listeners for the virtual deployment.
    name string
    A user-friendly name. The name must be unique within the same virtual service and cannot be changed after creation. Avoid entering confidential information. Example: My unique resource name
    serviceDiscovery VirtualDeploymentServiceDiscovery
    (Updatable) Service Discovery configuration for virtual deployments.
    state string
    The current state of the Resource.
    systemTags {[key: string]: any}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The time when this resource was created in an RFC3339 formatted datetime string.
    timeUpdated string
    The time when this resource was updated in an RFC3339 formatted datetime string.
    virtualServiceId string

    The OCID of the service mesh in which this access policy is created.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    access_logging VirtualDeploymentAccessLoggingArgs
    (Updatable) This configuration determines if logging is enabled and where the logs will be output.
    compartment_id str
    (Updatable) The OCID of the compartment.
    defined_tags Mapping[str, Any]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description str
    (Updatable) Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
    freeform_tags Mapping[str, Any]
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    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.
    listeners VirtualDeploymentListenerArgs]
    (Updatable) The listeners for the virtual deployment.
    name str
    A user-friendly name. The name must be unique within the same virtual service and cannot be changed after creation. Avoid entering confidential information. Example: My unique resource name
    service_discovery VirtualDeploymentServiceDiscoveryArgs
    (Updatable) Service Discovery configuration for virtual deployments.
    state str
    The current state of the Resource.
    system_tags 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_id str

    The OCID of the service mesh in which this access policy is created.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    accessLogging Property Map
    (Updatable) This configuration determines if logging is enabled and where the logs will be output.
    compartmentId String
    (Updatable) The OCID of the compartment.
    definedTags Map<Any>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    (Updatable) Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
    freeformTags Map<Any>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    lifecycleDetails 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.
    listeners List<Property Map>
    (Updatable) The listeners for the virtual deployment.
    name String
    A user-friendly name. The name must be unique within the same virtual service and cannot be changed after creation. Avoid entering confidential information. Example: My unique resource name
    serviceDiscovery Property Map
    (Updatable) Service Discovery configuration for virtual deployments.
    state String
    The current state of the Resource.
    systemTags Map<Any>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time when this resource was created in an RFC3339 formatted datetime string.
    timeUpdated String
    The time when this resource was updated in an RFC3339 formatted datetime string.
    virtualServiceId String

    The OCID of the service mesh in which this access policy is created.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Supporting Types

    VirtualDeploymentAccessLogging, VirtualDeploymentAccessLoggingArgs

    IsEnabled bool
    (Updatable) Determines if the logging configuration is enabled.
    IsEnabled bool
    (Updatable) Determines if the logging configuration is enabled.
    isEnabled Boolean
    (Updatable) Determines if the logging configuration is enabled.
    isEnabled boolean
    (Updatable) Determines if the logging configuration is enabled.
    is_enabled bool
    (Updatable) Determines if the logging configuration is enabled.
    isEnabled Boolean
    (Updatable) Determines if the logging configuration is enabled.

    VirtualDeploymentListener, VirtualDeploymentListenerArgs

    Port int
    (Updatable) Port in which virtual deployment is running.
    Protocol string
    (Updatable) Type of protocol used in virtual deployment.
    IdleTimeoutInMs string
    (Updatable) The maximum duration in milliseconds for which the request's stream may be idle. The value 0 (zero) indicates that the timeout is disabled.
    RequestTimeoutInMs string
    (Updatable) The maximum duration in milliseconds for the deployed service to respond to an incoming request through the listener. If provided, the timeout value overrides the default timeout of 15 seconds for the HTTP/HTTP2 listeners, and disabled (no timeout) for the GRPC listeners. The value 0 (zero) indicates that the timeout is disabled. The timeout cannot be configured for the TCP and TLS_PASSTHROUGH listeners. For streaming responses from the deployed service, consider either keeping the timeout disabled or set a sufficiently high value.
    Port int
    (Updatable) Port in which virtual deployment is running.
    Protocol string
    (Updatable) Type of protocol used in virtual deployment.
    IdleTimeoutInMs string
    (Updatable) The maximum duration in milliseconds for which the request's stream may be idle. The value 0 (zero) indicates that the timeout is disabled.
    RequestTimeoutInMs string
    (Updatable) The maximum duration in milliseconds for the deployed service to respond to an incoming request through the listener. If provided, the timeout value overrides the default timeout of 15 seconds for the HTTP/HTTP2 listeners, and disabled (no timeout) for the GRPC listeners. The value 0 (zero) indicates that the timeout is disabled. The timeout cannot be configured for the TCP and TLS_PASSTHROUGH listeners. For streaming responses from the deployed service, consider either keeping the timeout disabled or set a sufficiently high value.
    port Integer
    (Updatable) Port in which virtual deployment is running.
    protocol String
    (Updatable) Type of protocol used in virtual deployment.
    idleTimeoutInMs String
    (Updatable) The maximum duration in milliseconds for which the request's stream may be idle. The value 0 (zero) indicates that the timeout is disabled.
    requestTimeoutInMs String
    (Updatable) The maximum duration in milliseconds for the deployed service to respond to an incoming request through the listener. If provided, the timeout value overrides the default timeout of 15 seconds for the HTTP/HTTP2 listeners, and disabled (no timeout) for the GRPC listeners. The value 0 (zero) indicates that the timeout is disabled. The timeout cannot be configured for the TCP and TLS_PASSTHROUGH listeners. For streaming responses from the deployed service, consider either keeping the timeout disabled or set a sufficiently high value.
    port number
    (Updatable) Port in which virtual deployment is running.
    protocol string
    (Updatable) Type of protocol used in virtual deployment.
    idleTimeoutInMs string
    (Updatable) The maximum duration in milliseconds for which the request's stream may be idle. The value 0 (zero) indicates that the timeout is disabled.
    requestTimeoutInMs string
    (Updatable) The maximum duration in milliseconds for the deployed service to respond to an incoming request through the listener. If provided, the timeout value overrides the default timeout of 15 seconds for the HTTP/HTTP2 listeners, and disabled (no timeout) for the GRPC listeners. The value 0 (zero) indicates that the timeout is disabled. The timeout cannot be configured for the TCP and TLS_PASSTHROUGH listeners. For streaming responses from the deployed service, consider either keeping the timeout disabled or set a sufficiently high value.
    port int
    (Updatable) Port in which virtual deployment is running.
    protocol str
    (Updatable) Type of protocol used in virtual deployment.
    idle_timeout_in_ms str
    (Updatable) The maximum duration in milliseconds for which the request's stream may be idle. The value 0 (zero) indicates that the timeout is disabled.
    request_timeout_in_ms str
    (Updatable) The maximum duration in milliseconds for the deployed service to respond to an incoming request through the listener. If provided, the timeout value overrides the default timeout of 15 seconds for the HTTP/HTTP2 listeners, and disabled (no timeout) for the GRPC listeners. The value 0 (zero) indicates that the timeout is disabled. The timeout cannot be configured for the TCP and TLS_PASSTHROUGH listeners. For streaming responses from the deployed service, consider either keeping the timeout disabled or set a sufficiently high value.
    port Number
    (Updatable) Port in which virtual deployment is running.
    protocol String
    (Updatable) Type of protocol used in virtual deployment.
    idleTimeoutInMs String
    (Updatable) The maximum duration in milliseconds for which the request's stream may be idle. The value 0 (zero) indicates that the timeout is disabled.
    requestTimeoutInMs String
    (Updatable) The maximum duration in milliseconds for the deployed service to respond to an incoming request through the listener. If provided, the timeout value overrides the default timeout of 15 seconds for the HTTP/HTTP2 listeners, and disabled (no timeout) for the GRPC listeners. The value 0 (zero) indicates that the timeout is disabled. The timeout cannot be configured for the TCP and TLS_PASSTHROUGH listeners. For streaming responses from the deployed service, consider either keeping the timeout disabled or set a sufficiently high value.

    VirtualDeploymentServiceDiscovery, VirtualDeploymentServiceDiscoveryArgs

    Type string
    (Updatable) Type of service discovery.
    Hostname string
    (Updatable) The hostname of the virtual deployments.
    Type string
    (Updatable) Type of service discovery.
    Hostname string
    (Updatable) The hostname of the virtual deployments.
    type String
    (Updatable) Type of service discovery.
    hostname String
    (Updatable) The hostname of the virtual deployments.
    type string
    (Updatable) Type of service discovery.
    hostname string
    (Updatable) The hostname of the virtual deployments.
    type str
    (Updatable) Type of service discovery.
    hostname str
    (Updatable) The hostname of the virtual deployments.
    type String
    (Updatable) Type of service discovery.
    hostname String
    (Updatable) The hostname of the virtual deployments.

    Import

    VirtualDeployments can be imported using the id, e.g.

    $ pulumi import oci:ServiceMesh/virtualDeployment:VirtualDeployment test_virtual_deployment "id"
    

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi