oci.Analytics.AnalyticsInstanceVanityUrl
Explore with Pulumi AI
This resource provides the Analytics Instance Vanity Url resource in Oracle Cloud Infrastructure Analytics service.
Allows specifying a custom host name to be used to access the analytics instance. This requires prior setup of DNS entry and certificate for this host.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testAnalyticsInstanceVanityUrl = new Oci.Analytics.AnalyticsInstanceVanityUrl("testAnalyticsInstanceVanityUrl", new()
{
AnalyticsInstanceId = oci_analytics_analytics_instance.Test_analytics_instance.Id,
CaCertificate = @var.Analytics_instance_vanity_url_ca_certificate,
Hosts = @var.Analytics_instance_vanity_url_hosts,
PrivateKey = @var.Analytics_instance_vanity_url_private_key,
PublicCertificate = @var.Analytics_instance_vanity_url_public_certificate,
Description = @var.Analytics_instance_vanity_url_description,
Passphrase = @var.Analytics_instance_vanity_url_passphrase,
});
});
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/Analytics"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Analytics.NewAnalyticsInstanceVanityUrl(ctx, "testAnalyticsInstanceVanityUrl", &Analytics.AnalyticsInstanceVanityUrlArgs{
AnalyticsInstanceId: pulumi.Any(oci_analytics_analytics_instance.Test_analytics_instance.Id),
CaCertificate: pulumi.Any(_var.Analytics_instance_vanity_url_ca_certificate),
Hosts: pulumi.Any(_var.Analytics_instance_vanity_url_hosts),
PrivateKey: pulumi.Any(_var.Analytics_instance_vanity_url_private_key),
PublicCertificate: pulumi.Any(_var.Analytics_instance_vanity_url_public_certificate),
Description: pulumi.Any(_var.Analytics_instance_vanity_url_description),
Passphrase: pulumi.Any(_var.Analytics_instance_vanity_url_passphrase),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Analytics.AnalyticsInstanceVanityUrl;
import com.pulumi.oci.Analytics.AnalyticsInstanceVanityUrlArgs;
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 testAnalyticsInstanceVanityUrl = new AnalyticsInstanceVanityUrl("testAnalyticsInstanceVanityUrl", AnalyticsInstanceVanityUrlArgs.builder()
.analyticsInstanceId(oci_analytics_analytics_instance.test_analytics_instance().id())
.caCertificate(var_.analytics_instance_vanity_url_ca_certificate())
.hosts(var_.analytics_instance_vanity_url_hosts())
.privateKey(var_.analytics_instance_vanity_url_private_key())
.publicCertificate(var_.analytics_instance_vanity_url_public_certificate())
.description(var_.analytics_instance_vanity_url_description())
.passphrase(var_.analytics_instance_vanity_url_passphrase())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_analytics_instance_vanity_url = oci.analytics.AnalyticsInstanceVanityUrl("testAnalyticsInstanceVanityUrl",
analytics_instance_id=oci_analytics_analytics_instance["test_analytics_instance"]["id"],
ca_certificate=var["analytics_instance_vanity_url_ca_certificate"],
hosts=var["analytics_instance_vanity_url_hosts"],
private_key=var["analytics_instance_vanity_url_private_key"],
public_certificate=var["analytics_instance_vanity_url_public_certificate"],
description=var["analytics_instance_vanity_url_description"],
passphrase=var["analytics_instance_vanity_url_passphrase"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAnalyticsInstanceVanityUrl = new oci.analytics.AnalyticsInstanceVanityUrl("testAnalyticsInstanceVanityUrl", {
analyticsInstanceId: oci_analytics_analytics_instance.test_analytics_instance.id,
caCertificate: _var.analytics_instance_vanity_url_ca_certificate,
hosts: _var.analytics_instance_vanity_url_hosts,
privateKey: _var.analytics_instance_vanity_url_private_key,
publicCertificate: _var.analytics_instance_vanity_url_public_certificate,
description: _var.analytics_instance_vanity_url_description,
passphrase: _var.analytics_instance_vanity_url_passphrase,
});
resources:
testAnalyticsInstanceVanityUrl:
type: oci:Analytics:AnalyticsInstanceVanityUrl
properties:
#Required
analyticsInstanceId: ${oci_analytics_analytics_instance.test_analytics_instance.id}
caCertificate: ${var.analytics_instance_vanity_url_ca_certificate}
hosts: ${var.analytics_instance_vanity_url_hosts}
privateKey: ${var.analytics_instance_vanity_url_private_key}
publicCertificate: ${var.analytics_instance_vanity_url_public_certificate}
#Optional
description: ${var.analytics_instance_vanity_url_description}
passphrase: ${var.analytics_instance_vanity_url_passphrase}
Create AnalyticsInstanceVanityUrl Resource
new AnalyticsInstanceVanityUrl(name: string, args: AnalyticsInstanceVanityUrlArgs, opts?: CustomResourceOptions);
@overload
def AnalyticsInstanceVanityUrl(resource_name: str,
opts: Optional[ResourceOptions] = None,
analytics_instance_id: Optional[str] = None,
ca_certificate: Optional[str] = None,
description: Optional[str] = None,
hosts: Optional[Sequence[str]] = None,
passphrase: Optional[str] = None,
private_key: Optional[str] = None,
public_certificate: Optional[str] = None)
@overload
def AnalyticsInstanceVanityUrl(resource_name: str,
args: AnalyticsInstanceVanityUrlArgs,
opts: Optional[ResourceOptions] = None)
func NewAnalyticsInstanceVanityUrl(ctx *Context, name string, args AnalyticsInstanceVanityUrlArgs, opts ...ResourceOption) (*AnalyticsInstanceVanityUrl, error)
public AnalyticsInstanceVanityUrl(string name, AnalyticsInstanceVanityUrlArgs args, CustomResourceOptions? opts = null)
public AnalyticsInstanceVanityUrl(String name, AnalyticsInstanceVanityUrlArgs args)
public AnalyticsInstanceVanityUrl(String name, AnalyticsInstanceVanityUrlArgs args, CustomResourceOptions options)
type: oci:Analytics:AnalyticsInstanceVanityUrl
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AnalyticsInstanceVanityUrlArgs
- 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 AnalyticsInstanceVanityUrlArgs
- 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 AnalyticsInstanceVanityUrlArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AnalyticsInstanceVanityUrlArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AnalyticsInstanceVanityUrlArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
AnalyticsInstanceVanityUrl 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 AnalyticsInstanceVanityUrl resource accepts the following input properties:
- Analytics
Instance stringId The OCID of the AnalyticsInstance.
- Ca
Certificate string (Updatable) PEM CA certificate(s) for HTTPS connections. This may include multiple PEM certificates.
- Hosts List<string>
List of fully qualified hostnames supported by this vanity URL definition (max of 3).
- Private
Key string (Updatable) PEM Private key for HTTPS connections.
- Public
Certificate string (Updatable) PEM certificate for HTTPS connections.
** 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
- Description string
Optional description.
- Passphrase string
(Updatable) Passphrase for the PEM Private key (if any).
- Analytics
Instance stringId The OCID of the AnalyticsInstance.
- Ca
Certificate string (Updatable) PEM CA certificate(s) for HTTPS connections. This may include multiple PEM certificates.
- Hosts []string
List of fully qualified hostnames supported by this vanity URL definition (max of 3).
- Private
Key string (Updatable) PEM Private key for HTTPS connections.
- Public
Certificate string (Updatable) PEM certificate for HTTPS connections.
** 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
- Description string
Optional description.
- Passphrase string
(Updatable) Passphrase for the PEM Private key (if any).
- analytics
Instance StringId The OCID of the AnalyticsInstance.
- ca
Certificate String (Updatable) PEM CA certificate(s) for HTTPS connections. This may include multiple PEM certificates.
- hosts List<String>
List of fully qualified hostnames supported by this vanity URL definition (max of 3).
- private
Key String (Updatable) PEM Private key for HTTPS connections.
- public
Certificate String (Updatable) PEM certificate for HTTPS connections.
** 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
- description String
Optional description.
- passphrase String
(Updatable) Passphrase for the PEM Private key (if any).
- analytics
Instance stringId The OCID of the AnalyticsInstance.
- ca
Certificate string (Updatable) PEM CA certificate(s) for HTTPS connections. This may include multiple PEM certificates.
- hosts string[]
List of fully qualified hostnames supported by this vanity URL definition (max of 3).
- private
Key string (Updatable) PEM Private key for HTTPS connections.
- public
Certificate string (Updatable) PEM certificate for HTTPS connections.
** 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
- description string
Optional description.
- passphrase string
(Updatable) Passphrase for the PEM Private key (if any).
- analytics_
instance_ strid The OCID of the AnalyticsInstance.
- ca_
certificate str (Updatable) PEM CA certificate(s) for HTTPS connections. This may include multiple PEM certificates.
- hosts Sequence[str]
List of fully qualified hostnames supported by this vanity URL definition (max of 3).
- private_
key str (Updatable) PEM Private key for HTTPS connections.
- public_
certificate str (Updatable) PEM certificate for HTTPS connections.
** 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
- description str
Optional description.
- passphrase str
(Updatable) Passphrase for the PEM Private key (if any).
- analytics
Instance StringId The OCID of the AnalyticsInstance.
- ca
Certificate String (Updatable) PEM CA certificate(s) for HTTPS connections. This may include multiple PEM certificates.
- hosts List<String>
List of fully qualified hostnames supported by this vanity URL definition (max of 3).
- private
Key String (Updatable) PEM Private key for HTTPS connections.
- public
Certificate String (Updatable) PEM certificate for HTTPS connections.
** 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
- description String
Optional description.
- passphrase String
(Updatable) Passphrase for the PEM Private key (if any).
Outputs
All input properties are implicitly available as output properties. Additionally, the AnalyticsInstanceVanityUrl resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing AnalyticsInstanceVanityUrl Resource
Get an existing AnalyticsInstanceVanityUrl 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?: AnalyticsInstanceVanityUrlState, opts?: CustomResourceOptions): AnalyticsInstanceVanityUrl
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
analytics_instance_id: Optional[str] = None,
ca_certificate: Optional[str] = None,
description: Optional[str] = None,
hosts: Optional[Sequence[str]] = None,
passphrase: Optional[str] = None,
private_key: Optional[str] = None,
public_certificate: Optional[str] = None) -> AnalyticsInstanceVanityUrl
func GetAnalyticsInstanceVanityUrl(ctx *Context, name string, id IDInput, state *AnalyticsInstanceVanityUrlState, opts ...ResourceOption) (*AnalyticsInstanceVanityUrl, error)
public static AnalyticsInstanceVanityUrl Get(string name, Input<string> id, AnalyticsInstanceVanityUrlState? state, CustomResourceOptions? opts = null)
public static AnalyticsInstanceVanityUrl get(String name, Output<String> id, AnalyticsInstanceVanityUrlState 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.
- Analytics
Instance stringId The OCID of the AnalyticsInstance.
- Ca
Certificate string (Updatable) PEM CA certificate(s) for HTTPS connections. This may include multiple PEM certificates.
- Description string
Optional description.
- Hosts List<string>
List of fully qualified hostnames supported by this vanity URL definition (max of 3).
- Passphrase string
(Updatable) Passphrase for the PEM Private key (if any).
- Private
Key string (Updatable) PEM Private key for HTTPS connections.
- Public
Certificate string (Updatable) PEM certificate for HTTPS connections.
** 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
- Analytics
Instance stringId The OCID of the AnalyticsInstance.
- Ca
Certificate string (Updatable) PEM CA certificate(s) for HTTPS connections. This may include multiple PEM certificates.
- Description string
Optional description.
- Hosts []string
List of fully qualified hostnames supported by this vanity URL definition (max of 3).
- Passphrase string
(Updatable) Passphrase for the PEM Private key (if any).
- Private
Key string (Updatable) PEM Private key for HTTPS connections.
- Public
Certificate string (Updatable) PEM certificate for HTTPS connections.
** 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
- analytics
Instance StringId The OCID of the AnalyticsInstance.
- ca
Certificate String (Updatable) PEM CA certificate(s) for HTTPS connections. This may include multiple PEM certificates.
- description String
Optional description.
- hosts List<String>
List of fully qualified hostnames supported by this vanity URL definition (max of 3).
- passphrase String
(Updatable) Passphrase for the PEM Private key (if any).
- private
Key String (Updatable) PEM Private key for HTTPS connections.
- public
Certificate String (Updatable) PEM certificate for HTTPS connections.
** 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
- analytics
Instance stringId The OCID of the AnalyticsInstance.
- ca
Certificate string (Updatable) PEM CA certificate(s) for HTTPS connections. This may include multiple PEM certificates.
- description string
Optional description.
- hosts string[]
List of fully qualified hostnames supported by this vanity URL definition (max of 3).
- passphrase string
(Updatable) Passphrase for the PEM Private key (if any).
- private
Key string (Updatable) PEM Private key for HTTPS connections.
- public
Certificate string (Updatable) PEM certificate for HTTPS connections.
** 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
- analytics_
instance_ strid The OCID of the AnalyticsInstance.
- ca_
certificate str (Updatable) PEM CA certificate(s) for HTTPS connections. This may include multiple PEM certificates.
- description str
Optional description.
- hosts Sequence[str]
List of fully qualified hostnames supported by this vanity URL definition (max of 3).
- passphrase str
(Updatable) Passphrase for the PEM Private key (if any).
- private_
key str (Updatable) PEM Private key for HTTPS connections.
- public_
certificate str (Updatable) PEM certificate for HTTPS connections.
** 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
- analytics
Instance StringId The OCID of the AnalyticsInstance.
- ca
Certificate String (Updatable) PEM CA certificate(s) for HTTPS connections. This may include multiple PEM certificates.
- description String
Optional description.
- hosts List<String>
List of fully qualified hostnames supported by this vanity URL definition (max of 3).
- passphrase String
(Updatable) Passphrase for the PEM Private key (if any).
- private
Key String (Updatable) PEM Private key for HTTPS connections.
- public
Certificate String (Updatable) PEM certificate for HTTPS connections.
** 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
Import
AnalyticsInstanceVanityUrls can be imported using the id
, e.g.
$ pulumi import oci:Analytics/analyticsInstanceVanityUrl:AnalyticsInstanceVanityUrl test_analytics_instance_vanity_url "analyticsInstances/{analyticsInstanceId}/vanityUrls/{vanityUrlKey}"
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.