Script And Version Settings
Get Settings
Patch Settings
ModelsExpand Collapse
ScriptAndVersionSettingGetResponse { annotations, bindings, compatibility_date, 9 more }
annotations: optional { "workers/message", "workers/tag", "workers/triggered_by" } Annotations for the Worker version. Annotations are not inherited across settings updates; omitting this field means the new version will have no annotations.
Annotations for the Worker version. Annotations are not inherited across settings updates; omitting this field means the new version will have no annotations.
bindings: optional array of { name, type } or { instance_name, name, type, namespace } or { name, namespace, type } or 31 moreList of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
List of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
AISearch { instance_name, name, type, namespace }
AISearchNamespace { name, namespace, type }
DispatchNamespace { name, namespace, type, outbound }
Inherit { name, type, old_name, version_id }
Ratelimit { name, namespace_id, simple, type }
R2Bucket { bucket_name, name, type, jurisdiction }
jurisdiction: optional "eu" or "fedramp" or "fedramp-high"The jurisdiction of the R2 bucket.
The jurisdiction of the R2 bucket.
SecretKey { algorithm, format, name, 4 more }
Algorithm-specific key parameters. Learn more.
format: "raw" or "pkcs8" or "spki" or "jwk"Data format of the key. Learn more.
Data format of the key. Learn more.
usages: array of "encrypt" or "decrypt" or "sign" or 5 moreAllowed operations with the key. Learn more.
Allowed operations with the key. Learn more.
Base64-encoded key data. Required if format is “raw”, “pkcs8”, or “spki”.
Key data in JSON Web Key format. Required if format is “jwk”.
Workflow { name, type, workflow_name, 2 more }
Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a compatibility_date.
migrations: optional SingleStepMigration { deleted_classes, new_classes, new_sqlite_classes, 4 more } or { new_tag, old_tag, steps } Migrations to apply for Durable Objects associated with this Worker.
Migrations to apply for Durable Objects associated with this Worker.
SingleStepMigration { deleted_classes, new_classes, new_sqlite_classes, 4 more } A single set of migrations to apply.
A single set of migrations to apply.
A list of classes to delete Durable Object namespaces from.
A list of classes to create Durable Object namespaces with SQLite from.
Tag used to verify against the latest migration tag for this Worker. If they don’t match, the upload is rejected.
WorkersMultipleStepMigrations { new_tag, old_tag, steps }
Tag used to verify against the latest migration tag for this Worker. If they don’t match, the upload is rejected.
Migrations to apply in order.
Migrations to apply in order.
A list of classes to delete Durable Object namespaces from.
A list of classes to create Durable Object namespaces with SQLite from.
observability: optional { enabled, head_sampling_rate, logs, traces } Observability settings for the Worker.
Observability settings for the Worker.
The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
logs: optional { enabled, invocation_logs, destinations, 2 more } Log settings for the Worker.
Log settings for the Worker.
Whether invocation logs are enabled for the Worker.
placement: optional { mode } or { region } or { hostname } or 5 moreConfiguration for Smart Placement. Specify mode=‘smart’ for Smart Placement, or one of region/hostname/host.
Configuration for Smart Placement. Specify mode=‘smart’ for Smart Placement, or one of region/hostname/host.
Mode { mode }
Enables Smart Placement.
ScriptAndVersionSettingEditResponse { annotations, bindings, compatibility_date, 9 more }
annotations: optional { "workers/message", "workers/tag", "workers/triggered_by" } Annotations for the Worker version. Annotations are not inherited across settings updates; omitting this field means the new version will have no annotations.
Annotations for the Worker version. Annotations are not inherited across settings updates; omitting this field means the new version will have no annotations.
bindings: optional array of { name, type } or { instance_name, name, type, namespace } or { name, namespace, type } or 31 moreList of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
List of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
AISearch { instance_name, name, type, namespace }
AISearchNamespace { name, namespace, type }
DispatchNamespace { name, namespace, type, outbound }
Inherit { name, type, old_name, version_id }
Ratelimit { name, namespace_id, simple, type }
R2Bucket { bucket_name, name, type, jurisdiction }
jurisdiction: optional "eu" or "fedramp" or "fedramp-high"The jurisdiction of the R2 bucket.
The jurisdiction of the R2 bucket.
SecretKey { algorithm, format, name, 4 more }
Algorithm-specific key parameters. Learn more.
format: "raw" or "pkcs8" or "spki" or "jwk"Data format of the key. Learn more.
Data format of the key. Learn more.
usages: array of "encrypt" or "decrypt" or "sign" or 5 moreAllowed operations with the key. Learn more.
Allowed operations with the key. Learn more.
Base64-encoded key data. Required if format is “raw”, “pkcs8”, or “spki”.
Key data in JSON Web Key format. Required if format is “jwk”.
Workflow { name, type, workflow_name, 2 more }
Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a compatibility_date.
migrations: optional SingleStepMigration { deleted_classes, new_classes, new_sqlite_classes, 4 more } or { new_tag, old_tag, steps } Migrations to apply for Durable Objects associated with this Worker.
Migrations to apply for Durable Objects associated with this Worker.
SingleStepMigration { deleted_classes, new_classes, new_sqlite_classes, 4 more } A single set of migrations to apply.
A single set of migrations to apply.
A list of classes to delete Durable Object namespaces from.
A list of classes to create Durable Object namespaces with SQLite from.
Tag used to verify against the latest migration tag for this Worker. If they don’t match, the upload is rejected.
WorkersMultipleStepMigrations { new_tag, old_tag, steps }
Tag used to verify against the latest migration tag for this Worker. If they don’t match, the upload is rejected.
Migrations to apply in order.
Migrations to apply in order.
A list of classes to delete Durable Object namespaces from.
A list of classes to create Durable Object namespaces with SQLite from.
observability: optional { enabled, head_sampling_rate, logs, traces } Observability settings for the Worker.
Observability settings for the Worker.
The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
logs: optional { enabled, invocation_logs, destinations, 2 more } Log settings for the Worker.
Log settings for the Worker.
Whether invocation logs are enabled for the Worker.
placement: optional { mode } or { region } or { hostname } or 5 moreConfiguration for Smart Placement. Specify mode=‘smart’ for Smart Placement, or one of region/hostname/host.
Configuration for Smart Placement. Specify mode=‘smart’ for Smart Placement, or one of region/hostname/host.
Mode { mode }
Enables Smart Placement.