ALTER OPENFLOW CONNECTOR¶
- See also:
CREATE OPENFLOW CONNECTOR, DROP OPENFLOW CONNECTOR, SHOW OPENFLOW CONNECTOR DEFINITIONS, SHOW OPENFLOW CONNECTORS, DESCRIBE OPENFLOW CONNECTOR, SHOW VERSIONS IN OPENFLOW CONNECTOR
Modifies connector configuration, metadata, or operational state.
Configuration versioning¶
Parameters¶
nameSpecifies the identifier for the connector to alter.
IF EXISTSAlters the connector only if it exists. If the connector does not exist, the statement does nothing and returns a success message.
In this section,
IF EXISTSis supported only withSET DEFAULT_VERSION. TheADD VERSION,ADD LIVE VERSION,COMMIT, andABORTforms do not accept it.ADD VERSION FROM 'stage_reference'Imports configuration from a stage reference (
@<stage>[/path/]orsnow://...). Creates a new default version and auto-promotes it—noCOMMITstep. Connector must be STOPPED.ADD LIVE VERSION FROM { LAST | alias } [ COMMENT = string ]Creates a writable live version seeded from an existing version. Skip on a newly created connector—it already has a live version.
LASTseeds from the current default version. Specify a version alias to seed from a specific version instead.COMMENTattaches a comment to the new live version.COMMIT [ COMMENT = string ]Promotes the live version to a new immutable default and removes the live version.
COMMENTattaches a comment to the newly promoted version.ABORTDiscards the live version without changing the default.
SET DEFAULT_VERSION = { FIRST | LAST | 'version' }Sets which committed version the connector uses as its default.
FIRSTselects the earliest committed version,LASTthe most recent. Specify a version identifier to select a specific version.The current default appears in the
default_versioncolumn of SHOW OPENFLOW CONNECTORS and DESCRIBE OPENFLOW CONNECTOR output.
Use File staging commands (LS, GET, PUT) on the connector’s live or
LAST stage paths. See gen 2 connector configuration and versioning.
Operational state¶
Parameters¶
STARTStarts a STOPPED connector. Transitions through STARTING to RUNNING. Requires a committed default configuration.
STOPStops a RUNNING connector. Transitions through STOPPING to STOPPED.
TERMINATE [ FORCE ]Removes the connector from the runtime. The connector must be STOPPED first.
FORCEterminates the connector without waiting for in-flight data to drain. Use this when a standardTERMINATEcan’t complete because the connector is not responding. Does not exit transitional states such asSTOPPING. Data still in flight is lost.
Metadata and stage/Git sync¶
Parameters¶
SET ...Updates connector metadata. Requires
OWNERSHIP.RENAME TO new_nameRenames the connector. Requires
OWNERSHIP.PUSH [ TO 'git_branch_uri' ]Exports connector configuration to a Git repository stage. Requires Git credentials with write access.
PULLImports the latest configuration from the connector’s linked Git repository. Same pattern as other Git-backed file-based entities.
For Git-based promote workflows, see Create from a known configuration in gen 2 connector configuration and versioning.
Waiting for state transitions¶
After COMMIT, START, STOP, or TERMINATE, poll completion with
SYSTEM$WAIT_FOR_STABLE_OPENFLOW_CONNECTORS.