1. Packages
  2. Azure Native
  3. API Docs
  4. devices
  5. DpsCertificate
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.69.0 published on Monday, Oct 28, 2024 by Pulumi

azure-native.devices.DpsCertificate

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.69.0 published on Monday, Oct 28, 2024 by Pulumi

    The X509 Certificate. Azure REST API version: 2022-12-12. Prior API version in Azure Native 1.x: 2020-03-01.

    Other available API versions: 2021-10-15, 2023-03-01-preview, 2025-02-01-preview.

    Example Usage

    DPSCreateOrUpdateCertificate

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var dpsCertificate = new AzureNative.Devices.DpsCertificate("dpsCertificate", new()
        {
            CertificateName = "cert",
            Properties = new AzureNative.Devices.Inputs.CertificatePropertiesArgs
            {
                Certificate = "MA==",
            },
            ProvisioningServiceName = "myFirstProvisioningService",
            ResourceGroupName = "myResourceGroup",
        });
    
    });
    
    package main
    
    import (
    	devices "github.com/pulumi/pulumi-azure-native-sdk/devices/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := devices.NewDpsCertificate(ctx, "dpsCertificate", &devices.DpsCertificateArgs{
    			CertificateName: pulumi.String("cert"),
    			Properties: &devices.CertificatePropertiesArgs{
    				Certificate: pulumi.String("MA=="),
    			},
    			ProvisioningServiceName: pulumi.String("myFirstProvisioningService"),
    			ResourceGroupName:       pulumi.String("myResourceGroup"),
    		})
    		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.devices.DpsCertificate;
    import com.pulumi.azurenative.devices.DpsCertificateArgs;
    import com.pulumi.azurenative.devices.inputs.CertificatePropertiesArgs;
    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 dpsCertificate = new DpsCertificate("dpsCertificate", DpsCertificateArgs.builder()
                .certificateName("cert")
                .properties(CertificatePropertiesArgs.builder()
                    .certificate("MA==")
                    .build())
                .provisioningServiceName("myFirstProvisioningService")
                .resourceGroupName("myResourceGroup")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    dps_certificate = azure_native.devices.DpsCertificate("dpsCertificate",
        certificate_name="cert",
        properties={
            "certificate": "MA==",
        },
        provisioning_service_name="myFirstProvisioningService",
        resource_group_name="myResourceGroup")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const dpsCertificate = new azure_native.devices.DpsCertificate("dpsCertificate", {
        certificateName: "cert",
        properties: {
            certificate: "MA==",
        },
        provisioningServiceName: "myFirstProvisioningService",
        resourceGroupName: "myResourceGroup",
    });
    
    resources:
      dpsCertificate:
        type: azure-native:devices:DpsCertificate
        properties:
          certificateName: cert
          properties:
            certificate: MA==
          provisioningServiceName: myFirstProvisioningService
          resourceGroupName: myResourceGroup
    

    Create DpsCertificate Resource

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

    Constructor syntax

    new DpsCertificate(name: string, args: DpsCertificateArgs, opts?: CustomResourceOptions);
    @overload
    def DpsCertificate(resource_name: str,
                       args: DpsCertificateArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def DpsCertificate(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       provisioning_service_name: Optional[str] = None,
                       resource_group_name: Optional[str] = None,
                       certificate_name: Optional[str] = None,
                       properties: Optional[CertificatePropertiesArgs] = None)
    func NewDpsCertificate(ctx *Context, name string, args DpsCertificateArgs, opts ...ResourceOption) (*DpsCertificate, error)
    public DpsCertificate(string name, DpsCertificateArgs args, CustomResourceOptions? opts = null)
    public DpsCertificate(String name, DpsCertificateArgs args)
    public DpsCertificate(String name, DpsCertificateArgs args, CustomResourceOptions options)
    
    type: azure-native:devices:DpsCertificate
    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 DpsCertificateArgs
    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 DpsCertificateArgs
    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 DpsCertificateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DpsCertificateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DpsCertificateArgs
    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 dpsCertificateResource = new AzureNative.Devices.DpsCertificate("dpsCertificateResource", new()
    {
        ProvisioningServiceName = "string",
        ResourceGroupName = "string",
        CertificateName = "string",
        Properties = new AzureNative.Devices.Inputs.CertificatePropertiesArgs
        {
            Certificate = "string",
            IsVerified = false,
        },
    });
    
    example, err := devices.NewDpsCertificate(ctx, "dpsCertificateResource", &devices.DpsCertificateArgs{
    	ProvisioningServiceName: pulumi.String("string"),
    	ResourceGroupName:       pulumi.String("string"),
    	CertificateName:         pulumi.String("string"),
    	Properties: &devices.CertificatePropertiesArgs{
    		Certificate: pulumi.String("string"),
    		IsVerified:  pulumi.Bool(false),
    	},
    })
    
    var dpsCertificateResource = new DpsCertificate("dpsCertificateResource", DpsCertificateArgs.builder()
        .provisioningServiceName("string")
        .resourceGroupName("string")
        .certificateName("string")
        .properties(CertificatePropertiesArgs.builder()
            .certificate("string")
            .isVerified(false)
            .build())
        .build());
    
    dps_certificate_resource = azure_native.devices.DpsCertificate("dpsCertificateResource",
        provisioning_service_name="string",
        resource_group_name="string",
        certificate_name="string",
        properties={
            "certificate": "string",
            "is_verified": False,
        })
    
    const dpsCertificateResource = new azure_native.devices.DpsCertificate("dpsCertificateResource", {
        provisioningServiceName: "string",
        resourceGroupName: "string",
        certificateName: "string",
        properties: {
            certificate: "string",
            isVerified: false,
        },
    });
    
    type: azure-native:devices:DpsCertificate
    properties:
        certificateName: string
        properties:
            certificate: string
            isVerified: false
        provisioningServiceName: string
        resourceGroupName: string
    

    DpsCertificate Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The DpsCertificate resource accepts the following input properties:

    ProvisioningServiceName string
    The name of the provisioning service.
    ResourceGroupName string
    Resource group identifier.
    CertificateName string
    The name of the certificate create or update.
    Properties Pulumi.AzureNative.Devices.Inputs.CertificateProperties
    properties of a certificate
    ProvisioningServiceName string
    The name of the provisioning service.
    ResourceGroupName string
    Resource group identifier.
    CertificateName string
    The name of the certificate create or update.
    Properties CertificatePropertiesArgs
    properties of a certificate
    provisioningServiceName String
    The name of the provisioning service.
    resourceGroupName String
    Resource group identifier.
    certificateName String
    The name of the certificate create or update.
    properties CertificateProperties
    properties of a certificate
    provisioningServiceName string
    The name of the provisioning service.
    resourceGroupName string
    Resource group identifier.
    certificateName string
    The name of the certificate create or update.
    properties CertificateProperties
    properties of a certificate
    provisioning_service_name str
    The name of the provisioning service.
    resource_group_name str
    Resource group identifier.
    certificate_name str
    The name of the certificate create or update.
    properties CertificatePropertiesArgs
    properties of a certificate
    provisioningServiceName String
    The name of the provisioning service.
    resourceGroupName String
    Resource group identifier.
    certificateName String
    The name of the certificate create or update.
    properties Property Map
    properties of a certificate

    Outputs

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

    Etag string
    The entity tag.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the certificate.
    SystemData Pulumi.AzureNative.Devices.Outputs.SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    Type string
    The resource type.
    Etag string
    The entity tag.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the certificate.
    SystemData SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    Type string
    The resource type.
    etag String
    The entity tag.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the certificate.
    systemData SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    type String
    The resource type.
    etag string
    The entity tag.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the certificate.
    systemData SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    type string
    The resource type.
    etag str
    The entity tag.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the certificate.
    system_data SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    type str
    The resource type.
    etag String
    The entity tag.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the certificate.
    systemData Property Map
    Metadata pertaining to creation and last modification of the resource.
    type String
    The resource type.

    Supporting Types

    CertificateProperties, CertificatePropertiesArgs

    Certificate string
    base-64 representation of X509 certificate .cer file or just .pem file content.
    IsVerified bool
    Determines whether certificate has been verified.
    Certificate string
    base-64 representation of X509 certificate .cer file or just .pem file content.
    IsVerified bool
    Determines whether certificate has been verified.
    certificate String
    base-64 representation of X509 certificate .cer file or just .pem file content.
    isVerified Boolean
    Determines whether certificate has been verified.
    certificate string
    base-64 representation of X509 certificate .cer file or just .pem file content.
    isVerified boolean
    Determines whether certificate has been verified.
    certificate str
    base-64 representation of X509 certificate .cer file or just .pem file content.
    is_verified bool
    Determines whether certificate has been verified.
    certificate String
    base-64 representation of X509 certificate .cer file or just .pem file content.
    isVerified Boolean
    Determines whether certificate has been verified.

    CertificatePropertiesResponse, CertificatePropertiesResponseArgs

    Created string
    The certificate's creation date and time.
    Expiry string
    The certificate's expiration date and time.
    Subject string
    The certificate's subject name.
    Thumbprint string
    The certificate's thumbprint.
    Updated string
    The certificate's last update date and time.
    Certificate string
    base-64 representation of X509 certificate .cer file or just .pem file content.
    IsVerified bool
    Determines whether certificate has been verified.
    Created string
    The certificate's creation date and time.
    Expiry string
    The certificate's expiration date and time.
    Subject string
    The certificate's subject name.
    Thumbprint string
    The certificate's thumbprint.
    Updated string
    The certificate's last update date and time.
    Certificate string
    base-64 representation of X509 certificate .cer file or just .pem file content.
    IsVerified bool
    Determines whether certificate has been verified.
    created String
    The certificate's creation date and time.
    expiry String
    The certificate's expiration date and time.
    subject String
    The certificate's subject name.
    thumbprint String
    The certificate's thumbprint.
    updated String
    The certificate's last update date and time.
    certificate String
    base-64 representation of X509 certificate .cer file or just .pem file content.
    isVerified Boolean
    Determines whether certificate has been verified.
    created string
    The certificate's creation date and time.
    expiry string
    The certificate's expiration date and time.
    subject string
    The certificate's subject name.
    thumbprint string
    The certificate's thumbprint.
    updated string
    The certificate's last update date and time.
    certificate string
    base-64 representation of X509 certificate .cer file or just .pem file content.
    isVerified boolean
    Determines whether certificate has been verified.
    created str
    The certificate's creation date and time.
    expiry str
    The certificate's expiration date and time.
    subject str
    The certificate's subject name.
    thumbprint str
    The certificate's thumbprint.
    updated str
    The certificate's last update date and time.
    certificate str
    base-64 representation of X509 certificate .cer file or just .pem file content.
    is_verified bool
    Determines whether certificate has been verified.
    created String
    The certificate's creation date and time.
    expiry String
    The certificate's expiration date and time.
    subject String
    The certificate's subject name.
    thumbprint String
    The certificate's thumbprint.
    updated String
    The certificate's last update date and time.
    certificate String
    base-64 representation of X509 certificate .cer file or just .pem file content.
    isVerified Boolean
    Determines whether certificate has been verified.

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    Import

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

    $ pulumi import azure-native:devices:DpsCertificate cert /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName} 
    

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

    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 v1 docs if using the v1 version of this package.
    Azure Native v2.69.0 published on Monday, Oct 28, 2024 by Pulumi