Catatan
Akses ke halaman ini memerlukan otorisasi. Anda dapat mencoba masuk atau mengubah direktori.
Akses ke halaman ini memerlukan otorisasi. Anda dapat mencoba mengubah direktori.
- Terbaru
- 2025-09-01-pratinjau
- pratinjau 2025-03-01
- pratinjau 2024-10-01
- pratinjau
2024-06-01 -
2024-05-01 - pratinjau
2023-09-01 - Pratinjau 05-01 2023
- Pratinjau 03-03-2023
- pratinjau
2022-09-01 - 2022-08-01
- pratinjau
2022-04-01 - pratinjau
2021-12-01 - 2021-08-01
- pratinjau
2021-04-01 - pratinjau
2021-01-01 - 2020-12-01
- pratinjau
2020-06-01
Definisi sumber daya Bicep
Jenis sumber daya service/gateways/certificateAuthorities dapat disebarkan dengan operasi yang menargetkan:
- Grup sumber daya
- Lihat perintah penyebaran grup sumber daya
Untuk daftar properti yang diubah di setiap versi API, lihat mengubah log.
Contoh Penggunaan
Sampel Bicep
Contoh dasar penerapan Otoritas Sertifikat API Management Gateway.
param resourceName string = 'acctest0001'
param location string = 'westeurope'
@secure()
@description('The base64-encoded certificate data')
param certificateData string
@secure()
@description('The password for the certificate')
param certificatePassword string
resource service 'Microsoft.ApiManagement/service@2021-08-01' = {
name: resourceName
location: location
sku: {
capacity: 1
name: 'Developer'
}
properties: {
certificates: []
customProperties: {
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30': 'false'
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10': 'false'
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11': 'false'
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA': 'false'
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA': 'false'
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA': 'false'
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA': 'false'
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA': 'false'
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA256': 'false'
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_GCM_SHA256': 'false'
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_256_CBC_SHA': 'false'
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_256_CBC_SHA256': 'false'
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_256_GCM_SHA384': 'false'
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168': 'false'
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30': 'false'
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10': 'false'
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11': 'false'
}
disableGateway: false
publicNetworkAccess: 'Enabled'
publisherEmail: 'pub1@email.com'
publisherName: 'pub1'
virtualNetworkType: 'None'
}
}
resource certificate 'Microsoft.ApiManagement/service/certificates@2021-08-01' = {
name: resourceName
parent: service
properties: {
data: certificateData
password: certificatePassword
}
}
resource gateway 'Microsoft.ApiManagement/service/gateways@2021-08-01' = {
name: resourceName
parent: service
properties: {
description: ''
locationData: {
city: ''
countryOrRegion: ''
district: ''
name: 'test'
}
}
}
resource certificateAuthority 'Microsoft.ApiManagement/service/gateways/certificateAuthorities@2021-08-01' = {
name: 'azapi_resource.certificate.name'
parent: gateway
properties: {
isTrusted: false
}
}
Format sumber daya
Untuk membuat sumber daya Microsoft.ApiManagement/service/gateways/certificateAuthorities, tambahkan Bicep berikut ke templat Anda.
resource symbolicname 'Microsoft.ApiManagement/service/gateways/certificateAuthorities@2023-03-01-preview' = {
parent: resourceSymbolicName
name: 'string'
properties: {
isTrusted: bool
}
}
Nilai Properti
Microsoft.ApiManagement/service/gateways/certificateAuthorities
| Nama | Deskripsi | Nilai |
|---|---|---|
| Nama | Nama sumber daya | tali Kendala: Panjang min = 1 Panjang maksimum = 80 Pola = ^[^*#&+:<>?]+$ (diperlukan) |
| induk | Di Bicep, Anda dapat menentukan sumber daya induk untuk sumber daya anak. Anda hanya perlu menambahkan properti ini ketika sumber daya anak dideklarasikan di luar sumber daya induk. Untuk informasi selengkapnya, lihat sumber daya Turunan di luar sumber daya induk. |
Nama simbolis untuk sumber daya jenis: layanan/gateway |
| Properti | Detail otoritas sertifikat gateway. | GatewayCertificateAuthorityContractProperties |
GatewayCertificateAuthorityContractProperties
| Nama | Deskripsi | Nilai |
|---|---|---|
| terpercaya | Menentukan apakah otoritas sertifikat tepercaya. | bool |
Definisi sumber daya templat ARM
Jenis sumber daya service/gateways/certificateAuthorities dapat disebarkan dengan operasi yang menargetkan:
- Grup sumber daya - Lihat perintah penyebaran grup sumber daya Untuk daftar properti yang diubah di setiap versi API, lihat log perubahan.
Contoh Penggunaan
Format sumber daya
Untuk membuat sumber daya Microsoft.ApiManagement/service/gateways/certificateAuthorities, tambahkan JSON berikut ke templat Anda.
{
"type": "Microsoft.ApiManagement/service/gateways/certificateAuthorities",
"apiVersion": "2023-03-01-preview",
"name": "string",
"properties": {
"isTrusted": "bool"
}
}
Nilai Properti
Microsoft.ApiManagement/service/gateways/certificateAuthorities
| Nama | Deskripsi | Nilai |
|---|---|---|
| apiVersi | Versi api | 'Pratinjau 2023-03-01' |
| Nama | Nama sumber daya | tali Kendala: Panjang min = 1 Panjang maksimum = 80 Pola = ^[^*#&+:<>?]+$ (diperlukan) |
| Properti | Detail otoritas sertifikat gateway. | GatewayCertificateAuthorityContractProperties |
| jenis | Jenis sumber daya | 'Microsoft.ApiManagement/service/gateways/certificateAuthorities' |
GatewayCertificateAuthorityContractProperties
| Nama | Deskripsi | Nilai |
|---|---|---|
| terpercaya | Menentukan apakah otoritas sertifikat tepercaya. | bool |
Definisi sumber daya Terraform (penyedia AzAPI)
Jenis sumber daya service/gateways/certificateAuthorities dapat disebarkan dengan operasi yang menargetkan:
- Grup sumber daya Untuk daftar properti yang diubah di setiap versi API, lihat log perubahan.
Contoh Penggunaan
Sampel Terraform
Contoh dasar penerapan Otoritas Sertifikat API Management Gateway.
terraform {
required_providers {
azapi = {
source = "Azure/azapi"
}
}
}
provider "azapi" {
skip_provider_registration = false
}
variable "resource_name" {
type = string
default = "acctest0001"
}
variable "location" {
type = string
default = "westeurope"
}
variable "certificate_data" {
type = string
description = "The base64-encoded certificate data"
sensitive = true
}
variable "certificate_password" {
type = string
description = "The password for the certificate"
sensitive = true
}
resource "azapi_resource" "resourceGroup" {
type = "Microsoft.Resources/resourceGroups@2020-06-01"
name = var.resource_name
location = var.location
}
resource "azapi_resource" "service" {
type = "Microsoft.ApiManagement/service@2021-08-01"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {
certificates = [
]
customProperties = {
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30" = "false"
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10" = "false"
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11" = "false"
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA" = "false"
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA" = "false"
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA" = "false"
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA" = "false"
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA" = "false"
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA256" = "false"
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_GCM_SHA256" = "false"
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_256_CBC_SHA" = "false"
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_256_CBC_SHA256" = "false"
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_256_GCM_SHA384" = "false"
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168" = "false"
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30" = "false"
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10" = "false"
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11" = "false"
}
disableGateway = false
publicNetworkAccess = "Enabled"
publisherEmail = "pub1@email.com"
publisherName = "pub1"
virtualNetworkType = "None"
}
sku = {
capacity = 1
name = "Developer"
}
}
schema_validation_enabled = false
response_export_values = ["*"]
timeouts {
create = "180m"
update = "180m"
delete = "60m"
}
}
resource "azapi_resource" "gateway" {
type = "Microsoft.ApiManagement/service/gateways@2021-08-01"
parent_id = azapi_resource.service.id
name = var.resource_name
body = {
properties = {
description = ""
locationData = {
city = ""
countryOrRegion = ""
district = ""
name = "test"
}
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
resource "azapi_resource" "certificate" {
type = "Microsoft.ApiManagement/service/certificates@2021-08-01"
parent_id = azapi_resource.service.id
name = var.resource_name
body = {
properties = {
data = var.certificate_data
password = var.certificate_password
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
resource "azapi_resource" "certificateAuthority" {
type = "Microsoft.ApiManagement/service/gateways/certificateAuthorities@2021-08-01"
parent_id = azapi_resource.gateway.id
name = azapi_resource.certificate.name
body = {
properties = {
isTrusted = false
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
Format sumber daya
Untuk membuat sumber daya Microsoft.ApiManagement/service/gateways/certificateAuthorities, tambahkan Terraform berikut ke templat Anda.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.ApiManagement/service/gateways/certificateAuthorities@2023-03-01-preview"
name = "string"
parent_id = "string"
body = {
properties = {
isTrusted = bool
}
}
}
Nilai Properti
Microsoft.ApiManagement/service/gateways/certificateAuthorities
| Nama | Deskripsi | Nilai |
|---|---|---|
| Nama | Nama sumber daya | tali Kendala: Panjang min = 1 Panjang maksimum = 80 Pola = ^[^*#&+:<>?]+$ (diperlukan) |
| parent_id | ID sumber daya yang merupakan induk untuk sumber daya ini. | ID untuk sumber daya jenis: layanan/gateway |
| Properti | Detail otoritas sertifikat gateway. | GatewayCertificateAuthorityContractProperties |
| jenis | Jenis sumber daya | "Microsoft.ApiManagement/service/gateways/certificateAuthorities@2023-03-01-preview" |
GatewayCertificateAuthorityContractProperties
| Nama | Deskripsi | Nilai |
|---|---|---|
| terpercaya | Menentukan apakah otoritas sertifikat tepercaya. | bool |