O recurso ALIYUN::VS::Group crie um grupo.
Sintaxe
{
"Type": "ALIYUN::VS::Group",
"Properties": {
"OutProtocol": String,
"Name": String,
"App": String,
"Enabled": Boolean,
"Callback": String,
"InProtocol": String,
"Region": String,
"PlayDomain": String,
"LazyPull": Boolean,
"PushDomain": String,
"Description": String
}
}
Propriedades
| Propriedade | Tipo | Obrigatório | Editável | Descrição | Restrição |
| OutProtocol | String | Sim | Sim | Protocolo de reprodução do grupo. | Valores válidos:
|
| Name | String | Sim | Sim | Nome do grupo. | O nome deve ter de 4 a 64 caracteres e pode conter letras, dígitos e hifens (-). |
| App | String | Não | Não | Nome da aplicação do grupo. | Valor padrão: live. O nome pode conter letras, dígitos, sublinhados (_) e hifens (-). |
| Enabled | Boolean | Não | Sim | Indica se o grupo está ativado. | Valor padrão: false. Valores válidos:
|
| Callback | String | Não | Sim | URL de callback para envio de notificações upon atualização do status do dispositivo ou do stream. | Nenhuma |
| InProtocol | String | Sim | Sim | Protocolo de acesso do grupo. | Valores válidos:
|
| Region | String | Sim | Sim | Região do grupo, também conhecida como centro de serviço. | Nenhuma |
| PlayDomain | String | Sim | Sim | Domínio de streaming do grupo. | Nenhuma |
| LazyPull | Boolean | Não | Sim | Indica se o pull de stream sob demanda está ativado. | Valor padrão: false. Valores válidos:
|
| PushDomain | String | Sim | Sim | Domínio de ingestão do grupo. | Este parâmetro só tem efeito quando InProtocol é defina como rtmp. |
| Description | String | Não | Sim | Descrição do grupo. | Nenhuma |
Parâmetros de resposta
Fn::GetAtt
GbIp: endereço ip do servidor de sinalização GB28181 fornecido pelo grupo. Aplica-se apenas a grupos que usam o protocolo GB28181.
GbId: ID usado no padrão nacional GB/T28181, fornecido pelo grupo. Aplica-se apenas a grupos que usam o protocolo GB28181.
GbPort: porta do servidor de sinalização GB28181 fornecida pelo grupo. Aplica-se apenas a grupos que usam o protocolo GB28181.
Id: ID do grupo.
Exemplos
Formato JSON
{
"ROSTemplateFormatVersion": "2015-09-01",
"Resources": {
"Group": {
"Type": "ALIYUN::VS::Group",
"Properties": {
"LazyPull": {
"Ref": "LazyPull"
},
"Name": {
"Ref": "Name"
},
"App": {
"Ref": "App"
},
"Enabled": {
"Ref": "Enabled"
},
"PushDomain": {
"Ref": "PushDomain"
},
"Callback": {
"Ref": "Callback"
},
"InProtocol": {
"Ref": "InProtocol"
},
"PlayDomain": {
"Ref": "PlayDomain"
},
"OutProtocol": {
"Ref": "OutProtocol"
},
"Region": {
"Ref": "Region"
},
"Description": {
"Ref": "Description"
}
}
}
},
"Parameters": {
"LazyPull": {
"Type": "Boolean",
"Description": "Whether to enable on-demand pull flow, default false",
"AllowedValues": [
"True",
"true",
"False",
"false"
]
},
"Name": {
"Type": "String",
"Description": "Space name."
},
"App": {
"Type": "String",
"Description": "Application name space used, the default live."
},
"Enabled": {
"Type": "Boolean",
"Description": "Space is enabled.",
"AllowedValues": [
"True",
"true",
"False",
"false"
]
},
"PushDomain": {
"Type": "String",
"Description": "Plug flow domain name space to use. (Only access to the space rtmp)"
},
"Callback": {
"Type": "String",
"Description": "Updating the space callback device / flow state"
},
"InProtocol": {
"Type": "String",
"Description": "Access protocol used by the space.\nValue: gb28181, rtmp"
},
"PlayDomain": {
"Type": "String",
"Description": "Use of the domain name space broadcast stream."
},
"OutProtocol": {
"Type": "String",
"Description": "Play protocol used by the space, multivalued separated by commas.\nValue: flv, hls, rtmp"
},
"Region": {
"Type": "String",
"Description": "Space belongs to the region, as a service center."
},
"Description": {
"Type": "String",
"Description": "Space description."
}
},
"Outputs": {
"GbIp": {
"Description": "GB signaling server address space provided. (Applies only to access the space marked States)",
"Value": {
"Fn::GetAtt": [
"Group",
"GbIp"
]
}
},
"GbPort": {
"Description": "GB Port space provided. (Applies only to access the space marked States)",
"Value": {
"Fn::GetAtt": [
"Group",
"GbPort"
]
}
},
"GbId": {
"Description": "GB ID space provided. (Applies only to access the space marked States)",
"Value": {
"Fn::GetAtt": [
"Group",
"GbId"
]
}
},
"Id": {
"Description": "Space ID.",
"Value": {
"Fn::GetAtt": [
"Group",
"Id"
]
}
}
}
}
Formato YAML
ROSTemplateFormatVersion: '2015-09-01'
Resources:
Group:
Type: 'ALIYUN::VS::Group'
Properties:
LazyPull:
Ref: LazyPull
Name:
Ref: Name
App:
Ref: App
Enabled:
Ref: Enabled
PushDomain:
Ref: PushDomain
Callback:
Ref: Callback
InProtocol:
Ref: InProtocol
PlayDomain:
Ref: PlayDomain
OutProtocol:
Ref: OutProtocol
Region:
Ref: Region
Description:
Ref: Description
Parameters:
LazyPull:
Type: Boolean
Description: 'Whether to enable on-demand pull flow, default false'
AllowedValues:
- 'True'
- 'true'
- 'False'
- 'false'
Name:
Type: String
Description: Space name.
App:
Type: String
Description: 'Application name space used, the default live.'
Enabled:
Type: Boolean
Description: Space is enabled.
AllowedValues:
- 'True'
- 'true'
- 'False'
- 'false'
PushDomain:
Type: String
Description: Plug flow domain name space to use. (Only access to the space rtmp)
Callback:
Type: String
Description: Updating the space callback device / flow state
InProtocol:
Type: String
Description: |-
Access protocol used by the space.
Value: gb28181, rtmp
PlayDomain:
Type: String
Description: Use of the domain name space broadcast stream.
OutProtocol:
Type: String
Description: |-
Play protocol used by the space, multivalued separated by commas.
Value: flv, hls, rtmp
Region:
Type: String
Description: 'Space belongs to the region, as a service center.'
Description:
Type: String
Description: Space description.
Outputs:
GbIp:
Description: >-
GB signaling server address space provided. (Applies only to access the
space marked States)
Value:
'Fn::GetAtt':
- Group
- GbIp
GbPort:
Description: GB Port space provided. (Applies only to access the space marked States)
Value:
'Fn::GetAtt':
- Group
- GbPort
GbId:
Description: GB ID space provided. (Applies only to access the space marked States)
Value:
'Fn::GetAtt':
- Group
- GbId
Id:
Description: Space ID.
Value:
'Fn::GetAtt':
- Group
- Id