updateSolFunctionPackage
inline suspend fun TnbClient.updateSolFunctionPackage(crossinline block: UpdateSolFunctionPackageRequest.Builder.() -> Unit): UpdateSolFunctionPackageResponse
Updates the operational state of function package.
A function package is a .zip file in CSAR (Cloud Service Archive) format that contains a network function (an ETSI standard telecommunication application) and function package descriptor that uses the TOSCA standard to describe how the network functions should run on your network.
Samples
fun main() {
//sampleStart
// Enable a function package s Operational State
val resp = tnbClient.updateSolFunctionPackage {
vnfPkgId = "fp-07aa863e53460a2a6"
operationalState = OperationalState.fromValue("ENABLED")
}
//sampleEnd
}
fun main() {
//sampleStart
// Disable a function package s Operational State
val resp = tnbClient.updateSolFunctionPackage {
vnfPkgId = "fp-07aa863e53460a2a6"
operationalState = OperationalState.fromValue("DISABLED")
}
//sampleEnd
}