1. Packages
  2. Azure Native v1
  3. API Docs
  4. sql
  5. ServerTrustCertificate
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.sql.ServerTrustCertificate

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    Server trust certificate imported from box to enable connection between box and Sql Managed Instance. API Version: 2021-05-01-preview.

    Example Usage

    Create server trust certificate.

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var serverTrustCertificate = new AzureNative.Sql.ServerTrustCertificate("serverTrustCertificate", new()
        {
            CertificateName = "customerCertificateName",
            ManagedInstanceName = "testcl",
            PublicBlob = "308203AE30820296A0030201020210",
            ResourceGroupName = "testrg",
        });
    
    });
    
    package main
    
    import (
    	sql "github.com/pulumi/pulumi-azure-native-sdk/sql"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := sql.NewServerTrustCertificate(ctx, "serverTrustCertificate", &sql.ServerTrustCertificateArgs{
    			CertificateName:     pulumi.String("customerCertificateName"),
    			ManagedInstanceName: pulumi.String("testcl"),
    			PublicBlob:          pulumi.String("308203AE30820296A0030201020210"),
    			ResourceGroupName:   pulumi.String("testrg"),
    		})
    		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.azurenative.sql.ServerTrustCertificate;
    import com.pulumi.azurenative.sql.ServerTrustCertificateArgs;
    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 serverTrustCertificate = new ServerTrustCertificate("serverTrustCertificate", ServerTrustCertificateArgs.builder()        
                .certificateName("customerCertificateName")
                .managedInstanceName("testcl")
                .publicBlob("308203AE30820296A0030201020210")
                .resourceGroupName("testrg")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    server_trust_certificate = azure_native.sql.ServerTrustCertificate("serverTrustCertificate",
        certificate_name="customerCertificateName",
        managed_instance_name="testcl",
        public_blob="308203AE30820296A0030201020210",
        resource_group_name="testrg")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const serverTrustCertificate = new azure_native.sql.ServerTrustCertificate("serverTrustCertificate", {
        certificateName: "customerCertificateName",
        managedInstanceName: "testcl",
        publicBlob: "308203AE30820296A0030201020210",
        resourceGroupName: "testrg",
    });
    
    resources:
      serverTrustCertificate:
        type: azure-native:sql:ServerTrustCertificate
        properties:
          certificateName: customerCertificateName
          managedInstanceName: testcl
          publicBlob: 308203AE30820296A0030201020210
          resourceGroupName: testrg
    

    Create ServerTrustCertificate Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ServerTrustCertificate(name: string, args: ServerTrustCertificateArgs, opts?: CustomResourceOptions);
    @overload
    def ServerTrustCertificate(resource_name: str,
                               args: ServerTrustCertificateArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def ServerTrustCertificate(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               managed_instance_name: Optional[str] = None,
                               resource_group_name: Optional[str] = None,
                               certificate_name: Optional[str] = None,
                               public_blob: Optional[str] = None)
    func NewServerTrustCertificate(ctx *Context, name string, args ServerTrustCertificateArgs, opts ...ResourceOption) (*ServerTrustCertificate, error)
    public ServerTrustCertificate(string name, ServerTrustCertificateArgs args, CustomResourceOptions? opts = null)
    public ServerTrustCertificate(String name, ServerTrustCertificateArgs args)
    public ServerTrustCertificate(String name, ServerTrustCertificateArgs args, CustomResourceOptions options)
    
    type: azure-native:sql:ServerTrustCertificate
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ServerTrustCertificateArgs
    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 ServerTrustCertificateArgs
    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 ServerTrustCertificateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServerTrustCertificateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServerTrustCertificateArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var serverTrustCertificateResource = new AzureNative.Sql.ServerTrustCertificate("serverTrustCertificateResource", new()
    {
        ManagedInstanceName = "string",
        ResourceGroupName = "string",
        CertificateName = "string",
        PublicBlob = "string",
    });
    
    example, err := sql.NewServerTrustCertificate(ctx, "serverTrustCertificateResource", &sql.ServerTrustCertificateArgs{
    	ManagedInstanceName: "string",
    	ResourceGroupName:   "string",
    	CertificateName:     "string",
    	PublicBlob:          "string",
    })
    
    var serverTrustCertificateResource = new ServerTrustCertificate("serverTrustCertificateResource", ServerTrustCertificateArgs.builder()
        .managedInstanceName("string")
        .resourceGroupName("string")
        .certificateName("string")
        .publicBlob("string")
        .build());
    
    server_trust_certificate_resource = azure_native.sql.ServerTrustCertificate("serverTrustCertificateResource",
        managed_instance_name=string,
        resource_group_name=string,
        certificate_name=string,
        public_blob=string)
    
    const serverTrustCertificateResource = new azure_native.sql.ServerTrustCertificate("serverTrustCertificateResource", {
        managedInstanceName: "string",
        resourceGroupName: "string",
        certificateName: "string",
        publicBlob: "string",
    });
    
    type: azure-native:sql:ServerTrustCertificate
    properties:
        certificateName: string
        managedInstanceName: string
        publicBlob: string
        resourceGroupName: string
    

    ServerTrustCertificate 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 ServerTrustCertificate resource accepts the following input properties:

    ManagedInstanceName string
    The name of the managed instance.
    ResourceGroupName string
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    CertificateName string
    Name of of the certificate to upload.
    PublicBlob string
    The certificate public blob
    ManagedInstanceName string
    The name of the managed instance.
    ResourceGroupName string
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    CertificateName string
    Name of of the certificate to upload.
    PublicBlob string
    The certificate public blob
    managedInstanceName String
    The name of the managed instance.
    resourceGroupName String
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    certificateName String
    Name of of the certificate to upload.
    publicBlob String
    The certificate public blob
    managedInstanceName string
    The name of the managed instance.
    resourceGroupName string
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    certificateName string
    Name of of the certificate to upload.
    publicBlob string
    The certificate public blob
    managed_instance_name str
    The name of the managed instance.
    resource_group_name str
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    certificate_name str
    Name of of the certificate to upload.
    public_blob str
    The certificate public blob
    managedInstanceName String
    The name of the managed instance.
    resourceGroupName String
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    certificateName String
    Name of of the certificate to upload.
    publicBlob String
    The certificate public blob

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name.
    Thumbprint string
    The certificate thumbprint
    Type string
    Resource type.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name.
    Thumbprint string
    The certificate thumbprint
    Type string
    Resource type.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name.
    thumbprint String
    The certificate thumbprint
    type String
    Resource type.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Resource name.
    thumbprint string
    The certificate thumbprint
    type string
    Resource type.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Resource name.
    thumbprint str
    The certificate thumbprint
    type str
    Resource type.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name.
    thumbprint String
    The certificate thumbprint
    type String
    Resource type.

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:sql:ServerTrustCertificate customerCertificateName /subscriptions/0574222d-5c7f-489c-a172-b3013eafab53/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/testcl/serverTrustCertificates/customerCertificateName 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi