routeros.SystemCertificateScepServer
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as routeros from "@pulumi/routeros";
const exampleRootCa = new routeros.SystemCertificate("exampleRootCa", {
commonName: "Example Root CA",
keyUsages: [
"key-cert-sign",
"crl-sign",
],
trusted: true,
signs: [{}],
});
// You can also use the alias "routeros_certificate_scep_server"
const exampleScepServer = new routeros.SystemCertificateScepServer("exampleScepServer", {
caCert: exampleRootCa.name,
path: "/scep/example_scep_server",
daysValid: 30,
});
import pulumi
import pulumi_routeros as routeros
example_root_ca = routeros.SystemCertificate("exampleRootCa",
common_name="Example Root CA",
key_usages=[
"key-cert-sign",
"crl-sign",
],
trusted=True,
signs=[{}])
# You can also use the alias "routeros_certificate_scep_server"
example_scep_server = routeros.SystemCertificateScepServer("exampleScepServer",
ca_cert=example_root_ca.name,
path="/scep/example_scep_server",
days_valid=30)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/routeros/routeros"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleRootCa, err := routeros.NewSystemCertificate(ctx, "exampleRootCa", &routeros.SystemCertificateArgs{
CommonName: pulumi.String("Example Root CA"),
KeyUsages: pulumi.StringArray{
pulumi.String("key-cert-sign"),
pulumi.String("crl-sign"),
},
Trusted: pulumi.Bool(true),
Signs: routeros.SystemCertificateSignArray{
&routeros.SystemCertificateSignArgs{},
},
})
if err != nil {
return err
}
// You can also use the alias "routeros_certificate_scep_server"
_, err = routeros.NewSystemCertificateScepServer(ctx, "exampleScepServer", &routeros.SystemCertificateScepServerArgs{
CaCert: exampleRootCa.Name,
Path: pulumi.String("/scep/example_scep_server"),
DaysValid: pulumi.Float64(30),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Routeros = Pulumi.Routeros;
return await Deployment.RunAsync(() =>
{
var exampleRootCa = new Routeros.SystemCertificate("exampleRootCa", new()
{
CommonName = "Example Root CA",
KeyUsages = new[]
{
"key-cert-sign",
"crl-sign",
},
Trusted = true,
Signs = new[]
{
null,
},
});
// You can also use the alias "routeros_certificate_scep_server"
var exampleScepServer = new Routeros.SystemCertificateScepServer("exampleScepServer", new()
{
CaCert = exampleRootCa.Name,
Path = "/scep/example_scep_server",
DaysValid = 30,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.routeros.SystemCertificate;
import com.pulumi.routeros.SystemCertificateArgs;
import com.pulumi.routeros.inputs.SystemCertificateSignArgs;
import com.pulumi.routeros.SystemCertificateScepServer;
import com.pulumi.routeros.SystemCertificateScepServerArgs;
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 exampleRootCa = new SystemCertificate("exampleRootCa", SystemCertificateArgs.builder()
.commonName("Example Root CA")
.keyUsages(
"key-cert-sign",
"crl-sign")
.trusted(true)
.signs()
.build());
// You can also use the alias "routeros_certificate_scep_server"
var exampleScepServer = new SystemCertificateScepServer("exampleScepServer", SystemCertificateScepServerArgs.builder()
.caCert(exampleRootCa.name())
.path("/scep/example_scep_server")
.daysValid(30)
.build());
}
}
resources:
exampleRootCa:
type: routeros:SystemCertificate
properties:
commonName: Example Root CA
keyUsages:
- key-cert-sign
- crl-sign
trusted: true
signs:
- {}
# You can also use the alias "routeros_certificate_scep_server"
exampleScepServer:
type: routeros:SystemCertificateScepServer
properties:
caCert: ${exampleRootCa.name}
path: /scep/example_scep_server
daysValid: 30
Create SystemCertificateScepServer Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SystemCertificateScepServer(name: string, args: SystemCertificateScepServerArgs, opts?: CustomResourceOptions);
@overload
def SystemCertificateScepServer(resource_name: str,
args: SystemCertificateScepServerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SystemCertificateScepServer(resource_name: str,
opts: Optional[ResourceOptions] = None,
ca_cert: Optional[str] = None,
path: Optional[str] = None,
___id_: Optional[float] = None,
___path_: Optional[str] = None,
days_valid: Optional[float] = None,
disabled: Optional[bool] = None,
next_ca_cert: Optional[str] = None,
request_lifetime: Optional[str] = None,
system_certificate_scep_server_id: Optional[str] = None)
func NewSystemCertificateScepServer(ctx *Context, name string, args SystemCertificateScepServerArgs, opts ...ResourceOption) (*SystemCertificateScepServer, error)
public SystemCertificateScepServer(string name, SystemCertificateScepServerArgs args, CustomResourceOptions? opts = null)
public SystemCertificateScepServer(String name, SystemCertificateScepServerArgs args)
public SystemCertificateScepServer(String name, SystemCertificateScepServerArgs args, CustomResourceOptions options)
type: routeros:SystemCertificateScepServer
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 SystemCertificateScepServerArgs
- 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 SystemCertificateScepServerArgs
- 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 SystemCertificateScepServerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SystemCertificateScepServerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SystemCertificateScepServerArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
SystemCertificateScepServer 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 SystemCertificateScepServer resource accepts the following input properties:
- Ca
Cert string - Name of the CA certificate to use.
- Path string
- HTTP path starting with
/scep/
. - Days
Valid double - The number of days to sign certificates for.
- Disabled bool
- Next
Ca stringCert - Name of the next CA certificate or
none
. - Request
Lifetime string - Request lifetime (5m minimum).
- System
Certificate stringScep Server Id - The ID of this resource.
- ___
id_ double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- Ca
Cert string - Name of the CA certificate to use.
- Path string
- HTTP path starting with
/scep/
. - Days
Valid float64 - The number of days to sign certificates for.
- Disabled bool
- Next
Ca stringCert - Name of the next CA certificate or
none
. - Request
Lifetime string - Request lifetime (5m minimum).
- System
Certificate stringScep Server Id - The ID of this resource.
- ___
id_ float64 - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ca
Cert String - Name of the CA certificate to use.
- path String
- HTTP path starting with
/scep/
. - ___
id_ Double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- days
Valid Double - The number of days to sign certificates for.
- disabled Boolean
- next
Ca StringCert - Name of the next CA certificate or
none
. - request
Lifetime String - Request lifetime (5m minimum).
- system
Certificate StringScep Server Id - The ID of this resource.
- ca
Cert string - Name of the CA certificate to use.
- path string
- HTTP path starting with
/scep/
. - ___
id_ number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- days
Valid number - The number of days to sign certificates for.
- disabled boolean
- next
Ca stringCert - Name of the next CA certificate or
none
. - request
Lifetime string - Request lifetime (5m minimum).
- system
Certificate stringScep Server Id - The ID of this resource.
- ca_
cert str - Name of the CA certificate to use.
- path str
- HTTP path starting with
/scep/
. - ___
id_ float - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ str - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- days_
valid float - The number of days to sign certificates for.
- disabled bool
- next_
ca_ strcert - Name of the next CA certificate or
none
. - request_
lifetime str - Request lifetime (5m minimum).
- system_
certificate_ strscep_ server_ id - The ID of this resource.
- ca
Cert String - Name of the CA certificate to use.
- path String
- HTTP path starting with
/scep/
. - ___
id_ Number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- days
Valid Number - The number of days to sign certificates for.
- disabled Boolean
- next
Ca StringCert - Name of the next CA certificate or
none
. - request
Lifetime String - Request lifetime (5m minimum).
- system
Certificate StringScep Server Id - The ID of this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the SystemCertificateScepServer resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing SystemCertificateScepServer Resource
Get an existing SystemCertificateScepServer resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SystemCertificateScepServerState, opts?: CustomResourceOptions): SystemCertificateScepServer
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
___id_: Optional[float] = None,
___path_: Optional[str] = None,
ca_cert: Optional[str] = None,
days_valid: Optional[float] = None,
disabled: Optional[bool] = None,
next_ca_cert: Optional[str] = None,
path: Optional[str] = None,
request_lifetime: Optional[str] = None,
system_certificate_scep_server_id: Optional[str] = None) -> SystemCertificateScepServer
func GetSystemCertificateScepServer(ctx *Context, name string, id IDInput, state *SystemCertificateScepServerState, opts ...ResourceOption) (*SystemCertificateScepServer, error)
public static SystemCertificateScepServer Get(string name, Input<string> id, SystemCertificateScepServerState? state, CustomResourceOptions? opts = null)
public static SystemCertificateScepServer get(String name, Output<String> id, SystemCertificateScepServerState state, CustomResourceOptions options)
resources: _: type: routeros:SystemCertificateScepServer get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Ca
Cert string - Name of the CA certificate to use.
- Days
Valid double - The number of days to sign certificates for.
- Disabled bool
- Next
Ca stringCert - Name of the next CA certificate or
none
. - Path string
- HTTP path starting with
/scep/
. - Request
Lifetime string - Request lifetime (5m minimum).
- System
Certificate stringScep Server Id - The ID of this resource.
- ___
id_ double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- Ca
Cert string - Name of the CA certificate to use.
- Days
Valid float64 - The number of days to sign certificates for.
- Disabled bool
- Next
Ca stringCert - Name of the next CA certificate or
none
. - Path string
- HTTP path starting with
/scep/
. - Request
Lifetime string - Request lifetime (5m minimum).
- System
Certificate stringScep Server Id - The ID of this resource.
- ___
id_ float64 - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
id_ Double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ca
Cert String - Name of the CA certificate to use.
- days
Valid Double - The number of days to sign certificates for.
- disabled Boolean
- next
Ca StringCert - Name of the next CA certificate or
none
. - path String
- HTTP path starting with
/scep/
. - request
Lifetime String - Request lifetime (5m minimum).
- system
Certificate StringScep Server Id - The ID of this resource.
- ___
id_ number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ca
Cert string - Name of the CA certificate to use.
- days
Valid number - The number of days to sign certificates for.
- disabled boolean
- next
Ca stringCert - Name of the next CA certificate or
none
. - path string
- HTTP path starting with
/scep/
. - request
Lifetime string - Request lifetime (5m minimum).
- system
Certificate stringScep Server Id - The ID of this resource.
- ___
id_ float - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ str - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ca_
cert str - Name of the CA certificate to use.
- days_
valid float - The number of days to sign certificates for.
- disabled bool
- next_
ca_ strcert - Name of the next CA certificate or
none
. - path str
- HTTP path starting with
/scep/
. - request_
lifetime str - Request lifetime (5m minimum).
- system_
certificate_ strscep_ server_ id - The ID of this resource.
- ___
id_ Number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ca
Cert String - Name of the CA certificate to use.
- days
Valid Number - The number of days to sign certificates for.
- disabled Boolean
- next
Ca StringCert - Name of the next CA certificate or
none
. - path String
- HTTP path starting with
/scep/
. - request
Lifetime String - Request lifetime (5m minimum).
- system
Certificate StringScep Server Id - The ID of this resource.
Import
The ID can be found via API or the terminal
The command for the terminal is -> /certificate/scep-server/print show-ids
$ pulumi import routeros:index/systemCertificateScepServer:SystemCertificateScepServer example_scep_server "*1"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- routeros terraform-routeros/terraform-provider-routeros
- License
- Notes
- This Pulumi package is based on the
routeros
Terraform Provider.