1. Packages
  2. Azure Native
  3. API Docs
  4. sql
  5. getServerTrustCertificate
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.4.0 published on Wednesday, May 7, 2025 by Pulumi

azure-native.sql.getServerTrustCertificate

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.4.0 published on Wednesday, May 7, 2025 by Pulumi

    Gets a server trust certificate that was uploaded from SQL Server to SQL Managed Instance.

    Uses Azure REST API version 2023-08-01.

    Other available API versions: 2021-05-01-preview, 2021-08-01-preview, 2021-11-01, 2021-11-01-preview, 2022-02-01-preview, 2022-05-01-preview, 2022-08-01-preview, 2022-11-01-preview, 2023-02-01-preview, 2023-05-01-preview, 2023-08-01-preview, 2024-05-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native sql [ApiVersion]. See the version guide for details.

    Using getServerTrustCertificate

    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 getServerTrustCertificate(args: GetServerTrustCertificateArgs, opts?: InvokeOptions): Promise<GetServerTrustCertificateResult>
    function getServerTrustCertificateOutput(args: GetServerTrustCertificateOutputArgs, opts?: InvokeOptions): Output<GetServerTrustCertificateResult>
    def get_server_trust_certificate(certificate_name: Optional[str] = None,
                                     managed_instance_name: Optional[str] = None,
                                     resource_group_name: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetServerTrustCertificateResult
    def get_server_trust_certificate_output(certificate_name: Optional[pulumi.Input[str]] = None,
                                     managed_instance_name: Optional[pulumi.Input[str]] = None,
                                     resource_group_name: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetServerTrustCertificateResult]
    func LookupServerTrustCertificate(ctx *Context, args *LookupServerTrustCertificateArgs, opts ...InvokeOption) (*LookupServerTrustCertificateResult, error)
    func LookupServerTrustCertificateOutput(ctx *Context, args *LookupServerTrustCertificateOutputArgs, opts ...InvokeOption) LookupServerTrustCertificateResultOutput

    > Note: This function is named LookupServerTrustCertificate in the Go SDK.

    public static class GetServerTrustCertificate 
    {
        public static Task<GetServerTrustCertificateResult> InvokeAsync(GetServerTrustCertificateArgs args, InvokeOptions? opts = null)
        public static Output<GetServerTrustCertificateResult> Invoke(GetServerTrustCertificateInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetServerTrustCertificateResult> getServerTrustCertificate(GetServerTrustCertificateArgs args, InvokeOptions options)
    public static Output<GetServerTrustCertificateResult> getServerTrustCertificate(GetServerTrustCertificateArgs args, InvokeOptions options)
    
    fn::invoke:
      function: azure-native:sql:getServerTrustCertificate
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CertificateName string
    Name of of the certificate to get.
    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 get.
    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 get.
    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 get.
    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.
    certificate_name str
    Name of of the certificate to get.
    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.
    certificateName String
    Name of of the certificate to get.
    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.

    getServerTrustCertificate Result

    The following output properties are available:

    AzureApiVersion string
    The Azure API version of the resource.
    CertificateName string
    The certificate name
    Id string
    Resource ID.
    Name string
    Resource name.
    Thumbprint string
    The certificate thumbprint
    Type string
    Resource type.
    PublicBlob string
    The certificate public blob
    AzureApiVersion string
    The Azure API version of the resource.
    CertificateName string
    The certificate name
    Id string
    Resource ID.
    Name string
    Resource name.
    Thumbprint string
    The certificate thumbprint
    Type string
    Resource type.
    PublicBlob string
    The certificate public blob
    azureApiVersion String
    The Azure API version of the resource.
    certificateName String
    The certificate name
    id String
    Resource ID.
    name String
    Resource name.
    thumbprint String
    The certificate thumbprint
    type String
    Resource type.
    publicBlob String
    The certificate public blob
    azureApiVersion string
    The Azure API version of the resource.
    certificateName string
    The certificate name
    id string
    Resource ID.
    name string
    Resource name.
    thumbprint string
    The certificate thumbprint
    type string
    Resource type.
    publicBlob string
    The certificate public blob
    azure_api_version str
    The Azure API version of the resource.
    certificate_name str
    The certificate name
    id str
    Resource ID.
    name str
    Resource name.
    thumbprint str
    The certificate thumbprint
    type str
    Resource type.
    public_blob str
    The certificate public blob
    azureApiVersion String
    The Azure API version of the resource.
    certificateName String
    The certificate name
    id String
    Resource ID.
    name String
    Resource name.
    thumbprint String
    The certificate thumbprint
    type String
    Resource type.
    publicBlob String
    The certificate public blob

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
    Azure Native v3.4.0 published on Wednesday, May 7, 2025 by Pulumi