Share via


Microsoft.DocumentDB databaseAccounts/sqlDatabases/containers/triggers 2021-04-01-preview

Bicep 리소스 정의

databaseAccounts/sqlDatabases/containers/triggers 리소스 종류는 다음을 대상으로 하는 작업을 사용하여 배포할 수 있습니다.

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

리소스 형식

Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/triggers 리소스를 만들려면 템플릿에 다음 Bicep을 추가합니다.

resource symbolicname 'Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/triggers@2021-04-01-preview' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  parent: resourceSymbolicName
  identity: {
    type: 'string'
    userAssignedIdentities: {
      {customized property}: {}
    }
  }
  properties: {
    options: {
      autoscaleSettings: {
        maxThroughput: int
      }
      throughput: int
    }
    resource: {
      body: 'string'
      id: 'string'
      triggerOperation: 'string'
      triggerType: 'string'
    }
  }
}

속성 값

databaseAccounts/sqlDatabases/containers/triggers

Name Description
name 리소스 이름

Bicep에서 자식 리소스의 이름과 형식을 설정하는 방법을 참조하세요.
string(필수)
위치 리소스가 속한 리소스 그룹의 위치입니다. string
tags 태그는 리소스를 설명하는 키-값 쌍의 목록입니다. 여러 리소스 그룹에서 이 리소스를 보고 그룹화할 때 이러한 태그를 사용할 수 있습니다. 리소스에 대해 최대 15개의 태그를 제공할 수 있습니다. 각 태그에는 128자 이하의 키와 256자 이하의 값이 포함되어야 합니다. 예를 들어 템플릿 형식의 기본 환경은 "defaultExperience": "Cassandra"로 설정됩니다. 현재 "defaultExperience" 값에는 "Table", "Graph", "DocumentDB" 및 "MongoDB"도 포함됩니다. 태그 이름 및 값의 사전입니다. 템플릿의 태그를 참조하세요.
부모(parent) Bicep에서 자식 리소스에 대한 부모 리소스를 지정할 수 있습니다. 자식 리소스가 부모 리소스 외부에서 선언된 경우에만 이 속성을 추가하면 됩니다.

자세한 내용은 부모 리소스 외부의 자식 리소스를 참조하세요.
형식의 리소스에 대한 기호화된 이름: 컨테이너
identity 리소스의 ID입니다. ManagedServiceIdentity
properties Azure Cosmos DB 트리거를 만들고 업데이트하는 속성입니다. SqlTriggerCreateUpdatePropertiesOrSqlTriggerGetPrope... (필수)

ManagedServiceIdentity

Name Description
형식 'None'
'SystemAssigned'
'SystemAssigned,UserAssigned'
'UserAssigned': 리소스에 사용되는 ID 유형입니다. 'SystemAssigned,UserAssigned' 형식에는 암시적으로 생성된 ID와 사용자 할당 ID 집합이 모두 포함됩니다. 'None' 형식은 서비스에서 모든 ID를 제거합니다.
userAssignedIdentities 리소스와 연결된 사용자 ID 목록입니다. 사용자 ID 사전 키 참조는 '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}' 형식의 ARM 리소스 ID입니다. ManagedServiceIdentityUserAssignedIdentities

ManagedServiceIdentityUserAssignedIdentities

Name Description
{customized property} Components1Jq1T4ISchemasManagedserviceidentityProper...

Components1Jq1T4ISchemasManagedserviceidentityProper...

이 개체에는 배포 중에 설정할 속성이 포함되어 있지 않습니다. 모든 속성은 ReadOnly입니다.

SqlTriggerCreateUpdatePropertiesOrSqlTriggerGetPrope...

Name Description
옵션 요청에 적용할 키-값 옵션 쌍입니다. 요청과 함께 전송된 헤더에 해당합니다. CreateUpdateOptions
resource 트리거의 표준 JSON 형식 SqlTriggerResourceOrSqlTriggerGetPropertiesResource (필수)

CreateUpdateOptions

Name Description
autoscaleSettings 자동 크기 조정 설정을 지정합니다. AutoscaleSettings
throughput 초당 요청 단위입니다. 예를 들어 "처리량": 10000입니다. int

AutoscaleSettings

Name Description
maxThroughput 최대 처리량을 나타내며 리소스를 확장할 수 있습니다. int

SqlTriggerResourceOrSqlTriggerGetPropertiesResource

Name Description
본문 트리거 본문 문자열
id Cosmos DB SQL 트리거의 이름 string(필수)
triggerOperation 트리거가 연결된 작업 'All'
'만들기'
'Delete'
'Replace'
'Update'
triggerType 트리거 유형 '게시물'
'Pre'

빠른 시작 템플릿

다음 빠른 시작 템플릿은 이 리소스 종류를 배포합니다.

템플릿 Description
Azure Cosmos DB Core(SQL) API 저장 프로시저 만들기

Azure에 배포
이 템플릿은 Core(SQL) API용 Azure Cosmos DB 계정과 저장 프로시저, 트리거 및 사용자 정의 함수가 있는 컨테이너를 만듭니다.

ARM 템플릿 리소스 정의

databaseAccounts/sqlDatabases/containers/triggers 리소스 종류는 다음을 대상으로 하는 작업을 사용하여 배포할 수 있습니다.

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

리소스 형식

Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/triggers 리소스를 만들려면 템플릿에 다음 JSON을 추가합니다.

{
  "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/triggers",
  "apiVersion": "2021-04-01-preview",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "identity": {
    "type": "string",
    "userAssignedIdentities": {
      "{customized property}": {}
    }
  },
  "properties": {
    "options": {
      "autoscaleSettings": {
        "maxThroughput": "int"
      },
      "throughput": "int"
    },
    "resource": {
      "body": "string",
      "id": "string",
      "triggerOperation": "string",
      "triggerType": "string"
    }
  }
}

속성 값

databaseAccounts/sqlDatabases/containers/triggers

Name Description
형식 리소스 종류 'Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/triggers'
apiVersion 리소스 api 버전 '2021-04-01-preview'
name 리소스 이름

JSON ARM 템플릿에서 자식 리소스의 이름 및 형식을 설정하는 방법을 참조하세요.
string(필수)
위치 리소스가 속한 리소스 그룹의 위치입니다. 문자열
tags 태그는 리소스를 설명하는 키-값 쌍의 목록입니다. 여러 리소스 그룹에서 이 리소스를 보고 그룹화할 때 이러한 태그를 사용할 수 있습니다. 리소스에 대해 최대 15개의 태그를 제공할 수 있습니다. 각 태그에는 128자 이하의 키와 256자 이하의 값이 포함되어야 합니다. 예를 들어 템플릿 형식의 기본 환경은 "defaultExperience": "Cassandra"로 설정됩니다. 현재 "defaultExperience" 값에는 "Table", "Graph", "DocumentDB" 및 "MongoDB"도 포함됩니다. 태그 이름 및 값의 사전입니다. 템플릿의 태그를 참조하세요.
identity 리소스의 ID입니다. ManagedServiceIdentity
properties Azure Cosmos DB 트리거를 만들고 업데이트하는 속성입니다. SqlTriggerCreateUpdatePropertiesOrSqlTriggerGetPrope... (필수)

ManagedServiceIdentity

Name Description
형식 'None'
'SystemAssigned'
'SystemAssigned,UserAssigned'
'UserAssigned': 리소스에 사용되는 ID 유형입니다. 'SystemAssigned,UserAssigned' 형식에는 암시적으로 생성된 ID와 사용자 할당 ID 집합이 모두 포함됩니다. 'None' 형식은 서비스에서 모든 ID를 제거합니다.
userAssignedIdentities 리소스와 연결된 사용자 ID 목록입니다. 사용자 ID 사전 키 참조는 '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}' 형식의 ARM 리소스 ID입니다. ManagedServiceIdentityUserAssignedIdentities

ManagedServiceIdentityUserAssignedIdentities

Name Description
{customized property} Components1Jq1T4ISchemasManagedserviceidentityProper...

Components1Jq1T4ISchemasManagedserviceidentityProper...

이 개체에는 배포 중에 설정할 속성이 포함되어 있지 않습니다. 모든 속성은 ReadOnly입니다.

SqlTriggerCreateUpdatePropertiesOrSqlTriggerGetPrope...

Name Description
옵션 요청에 적용할 키-값 옵션 쌍입니다. 요청과 함께 전송된 헤더에 해당합니다. CreateUpdateOptions
resource 트리거의 표준 JSON 형식 SqlTriggerResourceOrSqlTriggerGetPropertiesResource (필수)

CreateUpdateOptions

Name Description
autoscaleSettings 자동 크기 조정 설정을 지정합니다. AutoscaleSettings
throughput 초당 요청 단위입니다. 예를 들어 "처리량": 10000입니다. int

AutoscaleSettings

Name Description
maxThroughput 최대 처리량을 나타내며 리소스를 확장할 수 있습니다. int

SqlTriggerResourceOrSqlTriggerGetPropertiesResource

Name Description
본문 트리거 본문 문자열
id Cosmos DB SQL 트리거의 이름 string(필수)
triggerOperation 트리거가 연결된 작업 'All'
'만들기'
'Delete'
'Replace'
'Update'
triggerType 트리거 유형 '게시물'
'Pre'

빠른 시작 템플릿

다음 빠른 시작 템플릿은 이 리소스 종류를 배포합니다.

템플릿 Description
Azure Cosmos DB Core(SQL) API 저장 프로시저 만들기

Azure에 배포
이 템플릿은 Core(SQL) API용 Azure Cosmos DB 계정과 저장 프로시저, 트리거 및 사용자 정의 함수가 있는 컨테이너를 만듭니다.

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

databaseAccounts/sqlDatabases/containers/triggers 리소스 종류는 다음을 대상으로 하는 작업을 사용하여 배포할 수 있습니다.

  • 리소스 그룹

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

리소스 형식

Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/triggers 리소스를 만들려면 템플릿에 다음 Terraform을 추가합니다.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/triggers@2021-04-01-preview"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  identity {
    type = "string"
    identity_ids = []
  }
  body = jsonencode({
    properties = {
      options = {
        autoscaleSettings = {
          maxThroughput = int
        }
        throughput = int
      }
      resource = {
        body = "string"
        id = "string"
        triggerOperation = "string"
        triggerType = "string"
      }
    }
  })
}

속성 값

databaseAccounts/sqlDatabases/containers/triggers

Name Description
형식 리소스 종류 "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/triggers@2021-04-01-preview"
name 리소스 이름 string(필수)
위치 리소스가 속한 리소스 그룹의 위치입니다. string
parent_id 이 리소스의 부모인 리소스의 ID입니다. 형식의 리소스에 대한 ID: 컨테이너
tags 태그는 리소스를 설명하는 키-값 쌍의 목록입니다. 여러 리소스 그룹에서 이 리소스를 보고 그룹화할 때 이러한 태그를 사용할 수 있습니다. 리소스에 대해 최대 15개의 태그를 제공할 수 있습니다. 각 태그에는 128자 이하의 키와 256자 이하의 값이 포함되어야 합니다. 예를 들어 템플릿 형식의 기본 환경은 "defaultExperience": "Cassandra"로 설정됩니다. 현재 "defaultExperience" 값에는 "Table", "Graph", "DocumentDB" 및 "MongoDB"도 포함됩니다. 태그 이름 및 값의 사전입니다.
identity 리소스의 ID입니다. ManagedServiceIdentity
properties Azure Cosmos DB 트리거를 만들고 업데이트하는 속성입니다. SqlTriggerCreateUpdatePropertiesOrSqlTriggerGetPrope... (필수)

ManagedServiceIdentity

Name Description
형식 "SystemAssigned"
"SystemAssigned,UserAssigned"
"UserAssigned": 리소스에 사용되는 ID 유형입니다. "SystemAssigned,UserAssigned" 형식에는 암시적으로 생성된 ID와 사용자 할당 ID 집합이 모두 포함됩니다. "None" 형식은 서비스에서 모든 ID를 제거합니다.
identity_ids 리소스와 연결된 사용자 ID 목록입니다. 사용자 ID 사전 키 참조는 '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}' 형식의 ARM 리소스 ID입니다. 사용자 ID ID의 배열입니다.

ManagedServiceIdentityUserAssignedIdentities

Name Description
{사용자 지정 속성} Components1Jq1T4ISchemasManagedserviceidentityProper...

Components1Jq1T4ISchemasManagedserviceidentityProper...

이 개체에는 배포 중에 설정할 속성이 포함되어 있지 않습니다. 모든 속성은 ReadOnly입니다.

SqlTriggerCreateUpdatePropertiesOrSqlTriggerGetPrope...

Name Description
옵션 요청에 적용할 키-값 옵션 쌍입니다. 이는 요청과 함께 전송된 헤더에 해당합니다. CreateUpdateOptions
resource 트리거의 표준 JSON 형식 SqlTriggerResourceOrSqlTriggerGetPropertiesResource (필수)

CreateUpdateOptions

Name Description
autoscaleSettings 자동 크기 조정 설정을 지정합니다. AutoscaleSettings
throughput 초당 요청 단위입니다. 예를 들어 "처리량": 10000입니다. int

AutoscaleSettings

Name Description
maxThroughput 최대 처리량을 나타내며 리소스를 확장할 수 있습니다. int

SqlTriggerResourceOrSqlTriggerGetPropertiesResource

Name Description
본문 트리거 본문 문자열
id Cosmos DB SQL 트리거의 이름 string(필수)
triggerOperation 트리거가 연결된 작업 "모두"
"만들기"
"Delete"
"바꾸기"
"업데이트"
triggerType 트리거 유형 "게시물"
"Pre"