azure-native.devices.DpsCertificate
Explore with Pulumi AI
The X509 Certificate. API Version: 2020-03-01.
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()
{
Certificate = "############################################",
CertificateName = "cert",
ProvisioningServiceName = "myFirstProvisioningService",
ResourceGroupName = "myResourceGroup",
});
});
package main
import (
devices "github.com/pulumi/pulumi-azure-native-sdk/devices"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := devices.NewDpsCertificate(ctx, "dpsCertificate", &devices.DpsCertificateArgs{
Certificate: pulumi.String("############################################"),
CertificateName: pulumi.String("cert"),
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 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()
.certificate("############################################")
.certificateName("cert")
.provisioningServiceName("myFirstProvisioningService")
.resourceGroupName("myResourceGroup")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
dps_certificate = azure_native.devices.DpsCertificate("dpsCertificate",
certificate="############################################",
certificate_name="cert",
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", {
certificate: "############################################",
certificateName: "cert",
provisioningServiceName: "myFirstProvisioningService",
resourceGroupName: "myResourceGroup",
});
resources:
dpsCertificate:
type: azure-native:devices:DpsCertificate
properties:
certificate: '############################################'
certificateName: cert
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: Optional[str] = None,
certificate_name: Optional[str] = None,
is_verified: Optional[bool] = 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",
Certificate = "string",
CertificateName = "string",
IsVerified = false,
});
example, err := devices.NewDpsCertificate(ctx, "dpsCertificateResource", &devices.DpsCertificateArgs{
ProvisioningServiceName: "string",
ResourceGroupName: "string",
Certificate: "string",
CertificateName: "string",
IsVerified: false,
})
var dpsCertificateResource = new DpsCertificate("dpsCertificateResource", DpsCertificateArgs.builder()
.provisioningServiceName("string")
.resourceGroupName("string")
.certificate("string")
.certificateName("string")
.isVerified(false)
.build());
dps_certificate_resource = azure_native.devices.DpsCertificate("dpsCertificateResource",
provisioning_service_name=string,
resource_group_name=string,
certificate=string,
certificate_name=string,
is_verified=False)
const dpsCertificateResource = new azure_native.devices.DpsCertificate("dpsCertificateResource", {
provisioningServiceName: "string",
resourceGroupName: "string",
certificate: "string",
certificateName: "string",
isVerified: false,
});
type: azure-native:devices:DpsCertificate
properties:
certificate: string
certificateName: 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:
- Provisioning
Service stringName - The name of the provisioning service.
- Resource
Group stringName - Resource group identifier.
- Certificate string
- Base-64 representation of the X509 leaf certificate .cer file or just .pem file content.
- Certificate
Name string - The name of the certificate create or update.
- Is
Verified bool - True indicates that the certificate will be created in verified state and proof of possession will not be required.
- Provisioning
Service stringName - The name of the provisioning service.
- Resource
Group stringName - Resource group identifier.
- Certificate string
- Base-64 representation of the X509 leaf certificate .cer file or just .pem file content.
- Certificate
Name string - The name of the certificate create or update.
- Is
Verified bool - True indicates that the certificate will be created in verified state and proof of possession will not be required.
- provisioning
Service StringName - The name of the provisioning service.
- resource
Group StringName - Resource group identifier.
- certificate String
- Base-64 representation of the X509 leaf certificate .cer file or just .pem file content.
- certificate
Name String - The name of the certificate create or update.
- is
Verified Boolean - True indicates that the certificate will be created in verified state and proof of possession will not be required.
- provisioning
Service stringName - The name of the provisioning service.
- resource
Group stringName - Resource group identifier.
- certificate string
- Base-64 representation of the X509 leaf certificate .cer file or just .pem file content.
- certificate
Name string - The name of the certificate create or update.
- is
Verified boolean - True indicates that the certificate will be created in verified state and proof of possession will not be required.
- provisioning_
service_ strname - The name of the provisioning service.
- resource_
group_ strname - Resource group identifier.
- certificate str
- Base-64 representation of the X509 leaf certificate .cer file or just .pem file content.
- certificate_
name str - The name of the certificate create or update.
- is_
verified bool - True indicates that the certificate will be created in verified state and proof of possession will not be required.
- provisioning
Service StringName - The name of the provisioning service.
- resource
Group StringName - Resource group identifier.
- certificate String
- Base-64 representation of the X509 leaf certificate .cer file or just .pem file content.
- certificate
Name String - The name of the certificate create or update.
- is
Verified Boolean - True indicates that the certificate will be created in verified state and proof of possession will not be required.
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.
- Properties
Pulumi.
Azure Native. Devices. Outputs. Certificate Properties Response - properties of a certificate
- 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.
- Properties
Certificate
Properties Response - properties of a certificate
- 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.
- properties
Certificate
Properties Response - properties of a certificate
- 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.
- properties
Certificate
Properties Response - properties of a certificate
- 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.
- properties
Certificate
Properties Response - properties of a certificate
- 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.
- properties Property Map
- properties of a certificate
- type String
- The resource type.
Supporting Types
CertificatePropertiesResponse, CertificatePropertiesResponseArgs
- Certificate string
- base-64 representation of X509 certificate .cer file or just .pem file content.
- Created string
- The certificate's creation date and time.
- Expiry string
- The certificate's expiration date and time.
- Is
Verified bool - Determines whether certificate has been verified.
- 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.
- Created string
- The certificate's creation date and time.
- Expiry string
- The certificate's expiration date and time.
- Is
Verified bool - Determines whether certificate has been verified.
- 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.
- created String
- The certificate's creation date and time.
- expiry String
- The certificate's expiration date and time.
- is
Verified Boolean - Determines whether certificate has been verified.
- 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.
- created string
- The certificate's creation date and time.
- expiry string
- The certificate's expiration date and time.
- is
Verified boolean - Determines whether certificate has been verified.
- subject string
- The certificate's subject name.
- thumbprint string
- The certificate's thumbprint.
- updated string
- The certificate's last update date and time.
- certificate str
- base-64 representation of X509 certificate .cer file or just .pem file content.
- created str
- The certificate's creation date and time.
- expiry str
- The certificate's expiration date and time.
- is_
verified bool - Determines whether certificate has been verified.
- subject str
- The certificate's subject name.
- thumbprint str
- The certificate's thumbprint.
- updated str
- The certificate's last update date and time.
- certificate String
- base-64 representation of X509 certificate .cer file or just .pem file content.
- created String
- The certificate's creation date and time.
- expiry String
- The certificate's expiration date and time.
- is
Verified Boolean - Determines whether certificate has been verified.
- subject String
- The certificate's subject name.
- thumbprint String
- The certificate's thumbprint.
- updated String
- The certificate's last update date and time.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:devices:DpsCertificate cert /subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/ProvisioningServives/myFirstProvisioningService/certificates/cert
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