Microsoft.ApiManagement 서비스/게이트웨이/certificateAuthorities 2023-03-01-preview

Bicep 리소스 정의

다음을 대상으로 하는 작업으로 서비스/게이트웨이/certificateAuthorities 리소스 유형을 배포할 수 있습니다.

각 API 버전에서 변경된 속성 목록은 변경 로그참조하세요.

사용 예제

Bicep 샘플

API Management 게이트웨이 인증 기관 배포의 기본 예제입니다.

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
  }
}

리소스 형식

Microsoft.ApiManagement/service/gateways/certificateAuthorities 리소스를 만들려면 템플릿에 다음 Bicep을 추가합니다.

resource symbolicname 'Microsoft.ApiManagement/service/gateways/certificateAuthorities@2023-03-01-preview' = {
  parent: resourceSymbolicName
  name: 'string'
  properties: {
    isTrusted: bool
  }
}

속성 값

Microsoft.ApiManagement/service/gateways/certificateAuthorities

이름 묘사 값
이름 리소스 이름 문자열

제약 조건:
최소 길이 = 1
최대 길이 = 80
패턴 = ^[^*#&+:<>?]+$(필수)
부모 Bicep에서 자식 리소스에 대한 부모 리소스를 지정할 수 있습니다. 자식 리소스가 부모 리소스 외부에서 선언된 경우에만 이 속성을 추가해야 합니다.

자세한 내용은 부모 리소스외부의 자식 리소스 참조하세요.
형식 리소스의 기호 이름: 서비스/게이트웨이
속성 게이트웨이 인증 기관 세부 정보입니다. GatewayCertificateAuthorityContractProperties

GatewayCertificateAuthorityContractProperties

이름 묘사 값
신뢰할 수 있는 인증 기관을 신뢰할 수 있는지 여부를 확인합니다. bool

ARM 템플릿 리소스 정의

다음을 대상으로 하는 작업으로 서비스/게이트웨이/certificateAuthorities 리소스 유형을 배포할 수 있습니다.

사용 예제

리소스 형식

Microsoft.ApiManagement/service/gateways/certificateAuthorities 리소스를 만들려면 템플릿에 다음 JSON을 추가합니다.

{
  "type": "Microsoft.ApiManagement/service/gateways/certificateAuthorities",
  "apiVersion": "2023-03-01-preview",
  "name": "string",
  "properties": {
    "isTrusted": "bool"
  }
}

속성 값

Microsoft.ApiManagement/service/gateways/certificateAuthorities

이름 묘사 값
API버전 api 버전 '2023-03-01-미리보기'
이름 리소스 이름 문자열

제약 조건:
최소 길이 = 1
최대 길이 = 80
패턴 = ^[^*#&+:<>?]+$(필수)
속성 게이트웨이 인증 기관 세부 정보입니다. GatewayCertificateAuthorityContractProperties
형 리소스 종류 'Microsoft.ApiManagement/service/gateways/certificateAuthorities'입니다.

GatewayCertificateAuthorityContractProperties

이름 묘사 값
신뢰할 수 있는 인증 기관을 신뢰할 수 있는지 여부를 확인합니다. bool

Terraform(AzAPI 공급자) 리소스 정의

다음을 대상으로 하는 작업으로 서비스/게이트웨이/certificateAuthorities 리소스 유형을 배포할 수 있습니다.

  • 자원 그룹 각 API 버전에서 변경된 속성 목록은 변경 로그를 참조하세요.

사용 예제

Terraform 샘플

API Management 게이트웨이 인증 기관 배포의 기본 예제입니다.

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    = ["*"]
}

리소스 형식

Microsoft.ApiManagement/service/gateways/certificateAuthorities 리소스를 만들려면 템플릿에 다음 Terraform을 추가합니다.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.ApiManagement/service/gateways/certificateAuthorities@2023-03-01-preview"
  name = "string"
  parent_id = "string"
  body = {
    properties = {
      isTrusted = bool
    }
  }
}

속성 값

Microsoft.ApiManagement/service/gateways/certificateAuthorities

이름 묘사 값
이름 리소스 이름 문자열

제약 조건:
최소 길이 = 1
최대 길이 = 80
패턴 = ^[^*#&+:<>?]+$(필수)
부모 ID 이 리소스의 부모인 리소스의 ID입니다. 유형의 리소스에 대한 ID: 서비스/게이트웨이
속성 게이트웨이 인증 기관 세부 정보입니다. GatewayCertificateAuthorityContractProperties
형 리소스 종류 "Microsoft.ApiManagement/service/gateways/certificateAuthorities@2023-03-01-preview"

GatewayCertificateAuthorityContractProperties

이름 묘사 값
신뢰할 수 있는 인증 기관을 신뢰할 수 있는지 여부를 확인합니다. bool