Microsoft.Web sourcecontrols
Bicep 資源定義
sourcecontrols 資源類型可以使用目標作業來部署:
- 租使用者 - 請參閱 租使用者部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.Web/sourcecontrols 資源,請將下列 Bicep 新增至範本。
resource symbolicname 'Microsoft.Web/sourcecontrols@2024-04-01' = {
kind: 'string'
name: 'string'
properties: {
expirationTime: 'string'
refreshToken: 'string'
token: 'string'
tokenSecret: 'string'
}
}
屬性值
Microsoft.Web/sourcecontrols
名字 | 描述 | 價值 |
---|---|---|
類 | 資源種類。 | 字串 |
名字 | 資源名稱 | 字串 (必要) |
性能 | SourceControl 資源特定屬性 | SourceControlProperties |
SourceControlProperties
名字 | 描述 | 價值 |
---|---|---|
expirationTime | OAuth 令牌到期。 | 字串 |
refreshToken | OAuth 重新整理令牌。 | 字串 |
令牌 | OAuth 存取令牌。 | 字串 |
tokenSecret | OAuth 存取令牌秘密。 | 字串 |
ARM 樣本資源定義
sourcecontrols 資源類型可以使用目標作業來部署:
- 租使用者 - 請參閱 租使用者部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.Web/sourcecontrols 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.Web/sourcecontrols",
"apiVersion": "2024-04-01",
"name": "string",
"kind": "string",
"properties": {
"expirationTime": "string",
"refreshToken": "string",
"token": "string",
"tokenSecret": "string"
}
}
屬性值
Microsoft.Web/sourcecontrols
名字 | 描述 | 價值 |
---|---|---|
apiVersion | API 版本 | '2024-04-01' |
類 | 資源種類。 | 字串 |
名字 | 資源名稱 | 字串 (必要) |
性能 | SourceControl 資源特定屬性 | SourceControlProperties |
類型 | 資源類型 | 'Microsoft.Web/sourcecontrols' |
SourceControlProperties
名字 | 描述 | 價值 |
---|---|---|
expirationTime | OAuth 令牌到期。 | 字串 |
refreshToken | OAuth 重新整理令牌。 | 字串 |
令牌 | OAuth 存取令牌。 | 字串 |
tokenSecret | OAuth 存取令牌秘密。 | 字串 |
Terraform (AzAPI 提供者) 資源定義
sourcecontrols 資源類型可以使用目標作業來部署:
- 租使用者
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.Web/sourcecontrols 資源,請將下列 Terraform 新增至範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Web/sourcecontrols@2024-04-01"
name = "string"
kind = "string"
body = jsonencode({
properties = {
expirationTime = "string"
refreshToken = "string"
token = "string"
tokenSecret = "string"
}
})
}
屬性值
Microsoft.Web/sourcecontrols
名字 | 描述 | 價值 |
---|---|---|
類 | 資源種類。 | 字串 |
名字 | 資源名稱 | 字串 (必要) |
性能 | SourceControl 資源特定屬性 | SourceControlProperties |
類型 | 資源類型 | “Microsoft.Web/sourcecontrols@2024-04-01” |
SourceControlProperties
名字 | 描述 | 價值 |
---|---|---|
expirationTime | OAuth 令牌到期。 | 字串 |
refreshToken | OAuth 重新整理令牌。 | 字串 |
令牌 | OAuth 存取令牌。 | 字串 |
tokenSecret | OAuth 存取令牌秘密。 | 字串 |