azure-native-v2.devices.DpsCertificate
Explore with Pulumi AI
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.
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
This property is required. string - The unique name of the resource.
- args
This property is required. DpsCertificateArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. 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
This property is required. string - The unique name of the resource.
- args
This property is required. DpsCertificateArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. DpsCertificateArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. 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 =
{
{ "certificate", "string" },
{ "isVerified", false },
},
});
example, err := devices.NewDpsCertificate(ctx, "dpsCertificateResource", &devices.DpsCertificateArgs{
ProvisioningServiceName: "string",
ResourceGroupName: "string",
CertificateName: "string",
Properties: map[string]interface{}{
"certificate": "string",
"isVerified": false,
},
})
var dpsCertificateResource = new DpsCertificate("dpsCertificateResource", DpsCertificateArgs.builder()
.provisioningServiceName("string")
.resourceGroupName("string")
.certificateName("string")
.properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
dps_certificate_resource = azure_native.devices.DpsCertificate("dpsCertificateResource",
provisioning_service_name=string,
resource_group_name=string,
certificate_name=string,
properties={
certificate: string,
isVerified: 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:
- Provisioning
Service Name This property is required. Changes to this property will trigger replacement.
- The name of the provisioning service.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- Resource group identifier.
- Certificate
Name Changes to this property will trigger replacement.
- The name of the certificate create or update.
- Properties
Pulumi.
Azure Native. Devices. Inputs. Certificate Properties - properties of a certificate
- Provisioning
Service Name This property is required. Changes to this property will trigger replacement.
- The name of the provisioning service.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- Resource group identifier.
- Certificate
Name Changes to this property will trigger replacement.
- The name of the certificate create or update.
- Properties
Certificate
Properties Args - properties of a certificate
- provisioning
Service Name This property is required. Changes to this property will trigger replacement.
- The name of the provisioning service.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- Resource group identifier.
- certificate
Name Changes to this property will trigger replacement.
- The name of the certificate create or update.
- properties
Certificate
Properties - properties of a certificate
- provisioning
Service Name This property is required. Changes to this property will trigger replacement.
- The name of the provisioning service.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- Resource group identifier.
- certificate
Name Changes to this property will trigger replacement.
- The name of the certificate create or update.
- properties
Certificate
Properties - properties of a certificate
- provisioning_
service_ name This property is required. Changes to this property will trigger replacement.
- The name of the provisioning service.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- Resource group identifier.
- certificate_
name Changes to this property will trigger replacement.
- The name of the certificate create or update.
- properties
Certificate
Properties Args - properties of a certificate
- provisioning
Service Name This property is required. Changes to this property will trigger replacement.
- The name of the provisioning service.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- Resource group identifier.
- certificate
Name Changes to this property will trigger replacement.
- 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.
- System
Data Pulumi.Azure Native. Devices. Outputs. System Data Response - 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.
- System
Data SystemData Response - 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.
- system
Data SystemData Response - 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.
- system
Data SystemData Response - 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 SystemData Response - 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.
- system
Data 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.
- Is
Verified bool - Determines whether certificate has been verified.
- Certificate string
- 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.
- is
Verified Boolean - Determines whether certificate has been verified.
- certificate string
- base-64 representation of X509 certificate .cer file or just .pem file content.
- is
Verified 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.
- is
Verified Boolean - Determines whether certificate has been verified.
CertificatePropertiesResponse, CertificatePropertiesResponseArgs
- Created
This property is required. string - The certificate's creation date and time.
- Expiry
This property is required. string - The certificate's expiration date and time.
- Subject
This property is required. string - The certificate's subject name.
- Thumbprint
This property is required. string - The certificate's thumbprint.
- Updated
This property is required. string - The certificate's last update date and time.
- Certificate string
- base-64 representation of X509 certificate .cer file or just .pem file content.
- Is
Verified bool - Determines whether certificate has been verified.
- Created
This property is required. string - The certificate's creation date and time.
- Expiry
This property is required. string - The certificate's expiration date and time.
- Subject
This property is required. string - The certificate's subject name.
- Thumbprint
This property is required. string - The certificate's thumbprint.
- Updated
This property is required. string - The certificate's last update date and time.
- Certificate string
- base-64 representation of X509 certificate .cer file or just .pem file content.
- Is
Verified bool - Determines whether certificate has been verified.
- created
This property is required. String - The certificate's creation date and time.
- expiry
This property is required. String - The certificate's expiration date and time.
- subject
This property is required. String - The certificate's subject name.
- thumbprint
This property is required. String - The certificate's thumbprint.
- updated
This property is required. String - The certificate's last update date and time.
- certificate String
- base-64 representation of X509 certificate .cer file or just .pem file content.
- is
Verified Boolean - Determines whether certificate has been verified.
- created
This property is required. string - The certificate's creation date and time.
- expiry
This property is required. string - The certificate's expiration date and time.
- subject
This property is required. string - The certificate's subject name.
- thumbprint
This property is required. string - The certificate's thumbprint.
- updated
This property is required. string - The certificate's last update date and time.
- certificate string
- base-64 representation of X509 certificate .cer file or just .pem file content.
- is
Verified boolean - Determines whether certificate has been verified.
- created
This property is required. str - The certificate's creation date and time.
- expiry
This property is required. str - The certificate's expiration date and time.
- subject
This property is required. str - The certificate's subject name.
- thumbprint
This property is required. str - The certificate's thumbprint.
- updated
This property is required. 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
This property is required. String - The certificate's creation date and time.
- expiry
This property is required. String - The certificate's expiration date and time.
- subject
This property is required. String - The certificate's subject name.
- thumbprint
This property is required. String - The certificate's thumbprint.
- updated
This property is required. String - The certificate's last update date and time.
- certificate String
- base-64 representation of X509 certificate .cer file or just .pem file content.
- is
Verified Boolean - Determines whether certificate has been verified.
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - 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_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - 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-v2 pulumi/pulumi-azure-native
- License
- Apache-2.0