action influxdata_post_buckets { label: "Create a bucket" provider: influxdata method: POST path: "/buckets" encoding: json input: { required: ["name", "orgID", "retentionRules"] properties: { description: { type: "string" } name: { type: "string" } orgID: { type: "string" } retentionRules: { type: "array" description: "Rules to expire or retain data. No rules means data never expires." items: { type: "object" required: ["type", "everySeconds"] properties: { everySeconds: { type: "integer" format: "int64" description: "Duration in seconds for how long data will be kept in the database. 0 means infinite." } shardGroupDurationSeconds: { type: "integer" format: "int64" description: "Shard duration measured in seconds." } type: { type: "string" enum: ["expire"] } } } } rp: { type: "string" } schemaType: { type: "string" enum: ["implicit", "explicit"] } } } output: { required: ["name", "retentionRules"] properties: { createdAt: { type: "string" format: "date-time" } description: { type: "string" } id: { type: "string" } labels: { type: "array" items: { type: "object" properties: { id: { type: "string" } name: { type: "string" } orgID: { type: "string" } properties: { type: "object" description: "Key/Value pairs associated with this label. Keys can be removed by sending an update with an empty value." } } } } links: { type: "object" properties: { labels: { type: "string" format: "uri" description: "URI of resource." } members: { type: "object" additionalProperties: true } org: { type: "object" additionalProperties: true } owners: { type: "object" additionalProperties: true } self: { type: "object" additionalProperties: true } write: { type: "object" additionalProperties: true } } } name: { type: "string" } orgID: { type: "string" } retentionRules: { type: "array" description: "Rules to expire or retain data. No rules means data never expires." items: { type: "object" required: ["type", "everySeconds"] properties: { everySeconds: { type: "integer" format: "int64" description: "Duration in seconds for how long data will be kept in the database. 0 means infinite." } shardGroupDurationSeconds: { type: "integer" format: "int64" description: "Shard duration measured in seconds." } type: { type: "string" enum: ["expire"] } } } } rp: { type: "string" } schemaType: { type: "string" enum: ["implicit", "explicit"] } type: { type: "string" enum: ["user", "system"] } updatedAt: { type: "string" format: "date-time" } } } }